<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SUSE &#38; openSUSE &#187; Database</title>
	<atom:link href="http://www.susegeek.com/category/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.susegeek.com</link>
	<description>Tips,Tricks, Tutorials,How Tos and Troubleshooting suse linux</description>
	<lastBuildDate>Wed, 30 Dec 2009 05:17:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
<link>http://www.susegeek.com</link>
<url>http://www.susegeek.com/wp-content/mbp-favicon/favicon.ico</url>
<title>SUSE &amp; openSUSE</title>
</image>
		<item>
		<title>How to install and configure pgAdmin III for PostgreSQL in openSUSE</title>
		<link>http://www.susegeek.com/database/how-to-install-and-configure-pgadmin-iii-for-postgresql-in-opensuse/</link>
		<comments>http://www.susegeek.com/database/how-to-install-and-configure-pgadmin-iii-for-postgresql-in-opensuse/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 20:55:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Database-Server]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[pgAdmin]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[wxGTK]]></category>

		<guid isPermaLink="false">http://www.susegeek.com/?p=136</guid>
		<description><![CDATA[
pgAdmin III is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world. pgAdmin III is a comprehensive design and management interface for PostgreSQL database, designed to run on most operating systems. The software is written in C++ and uses the excellent [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
<strong>pgAdmin III</strong> is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world. pgAdmin III is a comprehensive design and management interface for PostgreSQL database, designed to run on most operating systems. The software is written in C++ and uses the excellent wxWidgets cross platform toolkit. In every environment, pgAdmin III is a native application. The application is executed in binary code, not in a virtual machine, therefore offering excellent performance.</p>
<p><span id="more-136"></span><br />
Let&#8217;s see how to install and configure pgAdmin in openSUSE.</p>
<p><span style="color: #99cc00;"><em>NOTE: This procedure is installed on openSUSE 11.0</em></span></p>
<p><span style="text-decoration: underline;"><strong>Pre-requisites to install pgAdmin III</strong></span></p>
<p>pgAdmin requires the following pre-requisites to be installed before proceeding to install PostgreSQL.</p>
<blockquote><p><strong>Latest stable postgreSQL (YaST2 package: postgresql postgresql-devel &amp; postgresql-server from source)<br />
GTK 2.2<br />
Automake (YaST2 package: automake)<br />
Autoconf (YaST2 package: autoconf)<br />
GNU C Compiler (YaST2 package: gcc)<br />
wxGTK 2.8 or above (YaST2 package: wxGTK)<br />
libxml2 &amp; libxml2-devel<br />
libxslt &amp; libxslt-devel<br />
</strong></p></blockquote>
<blockquote><p><strong>opensuse11:~ # yast2 &#8211;install gtk2 gcc automake autoconf libxml2 libxml2-devel libxslt libxslt-devel postgresql postgresql-devel<br />
</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Install PostgreSQl Database Server from Source</strong></span></p>
<p>pgAdmin III requires Postresql database server be installed with support to openssl and hence it is better to build PostgreSQL from source.</p>
<p><span style="text-decoration: underline;"><strong>Download PostgreSQL Source</strong></span></p>
<p>Download the latest version of PostgreSQL from <a title="PostgreSQL source download" href="http://www.postgresql.org/ftp/source/v8.3.3/" target="_blank">here</a></p>
<blockquote><p><strong>opensuse11:~ # wget http://ftp2.uk.postgresql.org/sites/ftp.postgresql.org//source/v8.3.3/postgresql-8.3.3.tar.gz</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Untar &amp; Uncompress PostgreSQL source</strong></span></p>
<blockquote><p><strong>opensuse11:~ # tar -zxvf postgresql-8.3.3.tar.gz</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Configure/Compile &amp; Install PostgreSQL</strong></span></p>
<p>Change directory to the newly extracted directory and run the configure script with &#8220;&#8211;with-openssl&#8221; switch to support openssl. Once, the script runs without any error, run &#8220;make&#8221; and &#8220;make install&#8221; to compile and install PostgreSQL.</p>
<blockquote><p><strong>opensuse11:~ # cd postgresql-8.3.3<br />
opensuse11:~/postgresql-8.3.3 # ./configure &#8211;with-openssl<br />
opensuse11:~/postgresql-8.3.3 # make; make install<br />
</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Install wxGTK<br />
</strong></span><br />
wxGTK2 can be installed from YaST2 packages (wxGTK) however, it is recommended to install from source. Download the latest stable release 2.8.8 of wxGTK from <a title="wxGTK from source" href="http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.8.8.tar.gz" target="_self">here</a></p>
<blockquote><p><strong>opensuse11:~ # wget http://prdownloads.sourceforge.net/wxwindows/wxGTK-2.8.8.tar.gz</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Unzip &amp; Untar wxGTK</strong></span></p>
<blockquote><p><strong>opensuse11:~ # tar -zxvf wxGTK-2.8.8.tar.gz</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Configure/Compile &amp; Install wxGTK</strong></span><br />
<strong><br />
</strong></p>
<blockquote><p><strong>opensuse11:~ # cd wxGTK-2.8.8<br />
opensuse11:~/wxGTK-2.8.8 # ./configure &#8211;with-gtk &#8211;enable-gtk2 &#8211;enable-unicode<br />
opensuse11:~/wxGTK-2.8.8 # make<br />
opensuse11:~/wxGTK-2.8.8 # make install</strong></p></blockquote>
<p>Alternatively, pgadmin has a script to wxGTK from the downloaded source to do all the above for you. This script is &#8220;<em><strong>wxGTK-2.8.8/xtra/wx-build/build-wxgtk</strong></em>&#8221; where wxGTK-2.8.8 is the folder we extracted.</p>
<p><span style="text-decoration: underline;"><strong>Install pgAdmin III</strong></span></p>
<p>Let&#8217;s proceed to install pgAdmin now.</p>
<p>Download the latest source for pgAdmin from <a title="Download pgAdmin III source" href="http://www.postgresql.org/ftp/pgadmin3/release/v1.8.4/src/" target="_self">here</a></p>
<blockquote><p><strong>opensuse11:~ # wget http://ftp2.uk.postgresql.org/sites/ftp.postgresql.org//pgadmin3/release/v1.8.4/src/pgadmin3-1.8.4.tar.gz</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Unzip &amp; Untar pgAdmin III</strong></span></p>
<blockquote><p><strong>opensuse11:~ # tar -zxvf pgadmin3-1.8.4.tar.gz</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Configure/Compile &amp; Install pgAdmin III</strong></span></p>
<blockquote><p><strong>opensuse11:~ # cd pgadmin3-1.8.4<br />
opensuse11:~/pgadmin3-1.8.4 # ./configure<br />
opensuse11:~/pgadmin3-1.8.4 # make<br />
opensuse11:~/pgadmin3-1.8.4 # make install</strong></p></blockquote>
<p>This should install pgAdmin successfully on openSUSE. As I said earlier, I&#8217;ve done this in openSUSE 11.0 but should work fine on openSUSE 10.3 and earlier.</p>
<p><span style="text-decoration: underline;"><strong>Start pgAdmin</strong></span></p>
<p>pgAdmin binaries are installed in the /usr/local/pgadmin3/bin/</p>
<p>To start pgAdmin run the command as</p>
<p>opensuse11:~ # /usr/local/pgadmin3/bin/pgadmin</p>

<a href='http://www.susegeek.com/database/how-to-install-and-configure-pgadmin-iii-for-postgresql-in-opensuse/attachment/pgadmin/' title='pgadmin'><img width="150" height="150" src="http://www.susegeek.com/wp-content/uploads/2008/07/pgadmin-150x150.png" class="attachment-thumbnail" alt="pgAdmin Startsup" title="pgadmin" /></a>
<a href='http://www.susegeek.com/database/how-to-install-and-configure-pgadmin-iii-for-postgresql-in-opensuse/attachment/pgadmin2/' title='pgadmin2'><img width="150" height="150" src="http://www.susegeek.com/wp-content/uploads/2008/07/pgadmin2-150x150.png" class="attachment-thumbnail" alt="pgAdmin PostgreSQL admin/development interface" title="pgadmin2" /></a>


	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.susegeek.com/monitoring/1-click-installs-for-nagios-addons-plugins-in-opensuse-11-0/" title="1-click installs for Nagios Addons &#038; plugins in openSUSE 11.0 (August 10, 2009)">1-click installs for Nagios Addons &#038; plugins in openSUSE 11.0</a> (3)</li>
	<li><a href="http://www.susegeek.com/monitoring/1-click-installs-for-nagios-in-opensuse-11-1/" title="1-click installs for Nagios in openSUSE 11.1 (August 10, 2009)">1-click installs for Nagios in openSUSE 11.1</a> (0)</li>
	<li><a href="http://www.susegeek.com/multimedia/abby-gui-addons-utilities-for-clivecclive/" title="abby GUI &#038; addons utilities for Clive/CClive (June 23, 2009)">abby GUI &#038; addons utilities for Clive/CClive</a> (1)</li>
	<li><a href="http://www.susegeek.com/office-productivity/abiword-free-opensource-word-processor-for-opensuse-linux/" title="AbiWord &#8211; Free opensource Word Processor for openSUSE Linux (September 11, 2008)">AbiWord &#8211; Free opensource Word Processor for openSUSE Linux</a> (2)</li>
	<li><a href="http://www.susegeek.com/multimedia/acetoneiso2-a-full-feature-rich-imageiso-tool-for-opensuse/" title="Acetoneiso2 &#8211; A full feature rich Image/ISO tool for openSUSE (August 22, 2008)">Acetoneiso2 &#8211; A full feature rich Image/ISO tool for openSUSE</a> (6)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.susegeek.com/database/how-to-install-and-configure-pgadmin-iii-for-postgresql-in-opensuse/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Install and Configure PostgreSQL in openSUSE 11.0</title>
		<link>http://www.susegeek.com/database/install-and-configure-postgresql-in-opensuse-110/</link>
		<comments>http://www.susegeek.com/database/install-and-configure-postgresql-in-opensuse-110/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 23:15:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://www.susegeek.com/?p=111</guid>
		<description><![CDATA[
PostgreSQL is a powerful, open source relational database system with active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness. It runs on all major operating systems, including Linux, UNIX (AIX, BSD, HP-UX, SGI IRIX, Mac OS X, Solaris, Tru64), and Windows. It is fully ACID [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
PostgreSQL is a powerful, open source relational database system with active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness. It runs on all major operating systems, including Linux, UNIX (AIX, BSD, HP-UX, SGI IRIX, Mac OS X, Solaris, Tru64), and Windows. It is fully ACID compliant, has full support for foreign keys, joins, views, triggers, and stored procedures (in multiple languages). It includes most SQL92 and SQL99 data types, including INTEGER, NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and TIMESTAMP. It also supports storage of binary large objects, including pictures, sounds, or video. It has native programming interfaces for C/C++, Java, .Net, Perl, Python, Ruby, Tcl, ODBC, among others, and exceptional documentation. For more details and features, <a title="PostgreSQL Database Server" href="http://www.postgresql.org/about/" target="_self">click here</a></p>
<p><span id="more-111"></span></p>
<p><strong><span style="text-decoration: underline;">To install in openSUSE 11.0</span></strong></p>
<blockquote><p><strong>opensuse:~ # yast2 &#8211;install postgresql-server</strong></p></blockquote>
<p>This installs postgreSQL Database server on your openSUSE system.</p>
<p>The files for postgreSQL are installed in</p>
<p><strong>/usr/share/postgresql/</strong></p>
<p>Here you can find the sample files.</p>
<p>Actual data and runtime files are found here</p>
<p><strong>/var/lib/pgsql/</strong></p>
<p>The config files are found in</p>
<p><strong>/var/lib/pgsql/data</strong></p>
<p>The files of importance are <strong>pg_hba.conf &amp; postgresql.conf</strong></p>
<p>Once installation is complete, start postgreSQl for the first time</p>
<blockquote><p><strong>opensuse:~ # rcpostgresql start</strong></p></blockquote>
<p><span style="text-decoration: underline;"><strong>Set Username &amp; password</strong></span><br />
Login as postgres user and set the password</p>
<blockquote><p><strong>opensuse:~ # su postgres -c psql postgres</strong></p></blockquote>
<p>From the postgresql prompt</p>
<blockquote><p><strong>postgres=# ALTER USER postgres WITH PASSWORD &#8216;postgres&#8217;;<br />
ALTER ROLE</strong></p></blockquote>
<p>Quit from postgreSql prompt</p>
<blockquote><p><strong>postgres=# \q</strong></p></blockquote>
<p>One of the tings that needs to be checked is whether you use IDENT to authenticate users. If you don&#8217;t then you need to edit and modify the lines that allow user access to not to use IDENT. Else, you may face with error</p>
<p><strong><span style="color: #ff0000;">Error!</span></strong></p>
<p><strong><span style="color: #ff0000;">“IDENT authentication failed for user”</span></strong></p>
<p>Hence, if you do not use IDENT, edit the /var/lib/pgsql/data/pg_hba.conf file and change “ident” to “md5″. Say, for instance, the lines below</p>
<p><span style="color: #008080;">local   all         all                               ident sameuser<br />
host    all         all         127.0.0.1/32          ident sameuser<br />
host    all         all         ::1/128               ident sameuser</span></p>
<p>to</p>
<p><strong><span style="color: #339966;">local   all         all                               md5 sameuser<br />
host    all         all         127.0.0.1/32          md5 sameuser<br />
host    all         all         ::1/128               md5 sameuser</span></strong></p>
<p><strong><span style="text-decoration: underline;">Restart postgreSQL</span></strong></p>
<p>Once done,restart postgreSQL as follows:</p>
<blockquote><p><strong>opensuse:~ # rcpostgresql restart</strong></p></blockquote>
<p><strong><span style="text-decoration: underline;">Create and Delete users</span></strong></p>
<p><strong><em>To create an user</em></strong></p>
<blockquote><p><strong>opensuse:~ # su postgres</strong></p></blockquote>
<blockquote><p><strong>postgresql@opensuse</strong><strong>:~&gt; createuser -D &lt;username&gt;</strong></p></blockquote>
<p>for user with password</p>
<blockquote><p><strong>postgresql@opensuse:~&gt; createuser -D -p &lt;username&gt;</strong></p></blockquote>
<p><strong><em>To delete user</em></strong></p>
<blockquote><p><strong>postgresql@opensuse:~&gt; dropuser &lt;username&gt;</strong></p></blockquote>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.susegeek.com/monitoring/1-click-installs-for-nagios-addons-plugins-in-opensuse-11-0/" title="1-click installs for Nagios Addons &#038; plugins in openSUSE 11.0 (August 10, 2009)">1-click installs for Nagios Addons &#038; plugins in openSUSE 11.0</a> (3)</li>
	<li><a href="http://www.susegeek.com/monitoring/1-click-installs-for-nagios-in-opensuse-11-1/" title="1-click installs for Nagios in openSUSE 11.1 (August 10, 2009)">1-click installs for Nagios in openSUSE 11.1</a> (0)</li>
	<li><a href="http://www.susegeek.com/multimedia/abby-gui-addons-utilities-for-clivecclive/" title="abby GUI &#038; addons utilities for Clive/CClive (June 23, 2009)">abby GUI &#038; addons utilities for Clive/CClive</a> (1)</li>
	<li><a href="http://www.susegeek.com/office-productivity/abiword-free-opensource-word-processor-for-opensuse-linux/" title="AbiWord &#8211; Free opensource Word Processor for openSUSE Linux (September 11, 2008)">AbiWord &#8211; Free opensource Word Processor for openSUSE Linux</a> (2)</li>
	<li><a href="http://www.susegeek.com/multimedia/acetoneiso2-a-full-feature-rich-imageiso-tool-for-opensuse/" title="Acetoneiso2 &#8211; A full feature rich Image/ISO tool for openSUSE (August 22, 2008)">Acetoneiso2 &#8211; A full feature rich Image/ISO tool for openSUSE</a> (6)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.susegeek.com/database/install-and-configure-postgresql-in-opensuse-110/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
