<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.isikhnas.com/index.php?action=history&amp;feed=atom&amp;title=Database_server_setup</id>
	<title>Database server setup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.isikhnas.com/index.php?action=history&amp;feed=atom&amp;title=Database_server_setup"/>
	<link rel="alternate" type="text/html" href="https://wiki.isikhnas.com/index.php?title=Database_server_setup&amp;action=history"/>
	<updated>2026-09-09T22:56:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.16</generator>
	<entry>
		<id>https://wiki.isikhnas.com/index.php?title=Database_server_setup&amp;diff=821&amp;oldid=prev</id>
		<title>Catriona: Created page with &quot;== Server hardware setup == This is based on the use of an EeePC netbook with no CD. It should be connected to the internet via an ethernet cable (wireless can be set up but i...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.isikhnas.com/index.php?title=Database_server_setup&amp;diff=821&amp;oldid=prev"/>
		<updated>2014-02-25T03:27:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Server hardware setup == This is based on the use of an EeePC netbook with no CD. It should be connected to the internet via an ethernet cable (wireless can be set up but i...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Halaman baru&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Server hardware setup ==&lt;br /&gt;
This is based on the use of an EeePC netbook with no CD. It should be connected to the internet via an ethernet cable (wireless can be set up but it is too much bother and not practical for a server). &lt;br /&gt;
&lt;br /&gt;
== Install the operating system ==&lt;br /&gt;
# Download Ubuntu 12.04 Server edition iso&lt;br /&gt;
# Download unetbootin for use on a windows machine&lt;br /&gt;
# Create a boot USB stick with the Ubuntu image&lt;br /&gt;
# Set the netbook's Bios to boot from the USB stick&lt;br /&gt;
# Boot and install&lt;br /&gt;
&lt;br /&gt;
== Software configuration ==&lt;br /&gt;
# Install OpenSSH so you can configure it via SSH over the network&lt;br /&gt;
&lt;br /&gt;
 # sudo apt-get install openssh-server&lt;br /&gt;
&lt;br /&gt;
If you are connected to the LAN, you should now be able to continue configuration from a second machine over SSH. To check the IP address on the netbook&lt;br /&gt;
&lt;br /&gt;
 # ifconfig&lt;br /&gt;
&lt;br /&gt;
Then on your main machine, use PuTTY to access the netbook at the specified address.&lt;br /&gt;
&lt;br /&gt;
# Install Postgresql 9.1&lt;br /&gt;
It should be 9.2 but it is not easily available in apt, and postgis isn't available. To avoid compiling, we'll stick with 9.1&lt;br /&gt;
&lt;br /&gt;
 # sudo apt-get install postgresql&lt;br /&gt;
 # sudo apt-get install postgis&lt;br /&gt;
&lt;br /&gt;
Continue configuration of SMS tools as indicated in SMS server setup guide.&lt;br /&gt;
&lt;br /&gt;
== Configure and restore the database ==&lt;br /&gt;
&lt;br /&gt;
=== Download the database from the AWS server ===&lt;br /&gt;
# change to the postgres user&lt;br /&gt;
&lt;br /&gt;
 # sudo su postgres&lt;br /&gt;
&lt;br /&gt;
# export the entire database cluster&lt;br /&gt;
&lt;br /&gt;
 # pg_dumpall &amp;gt; /tmp/db_all_20130407.sql&lt;br /&gt;
&lt;br /&gt;
# compress it&lt;br /&gt;
&lt;br /&gt;
 # gzip /tmp/db_all_20130407.sql&lt;br /&gt;
&lt;br /&gt;
# Use your local SFTP client to download the export file.&lt;br /&gt;
# Uncompress it&lt;br /&gt;
&lt;br /&gt;
 # gunzip db_all_20130407.sql.gz&lt;br /&gt;
&lt;br /&gt;
=== Set up the local database and install the backup file ===&lt;br /&gt;
&lt;br /&gt;
 # sudo su postgres&lt;br /&gt;
 # psql postgres &amp;lt; db_all_20130407.sql&lt;br /&gt;
 # exit&lt;br /&gt;
&lt;br /&gt;
=== Set up database access ===&lt;br /&gt;
Edit pg_hba.conf&lt;br /&gt;
&lt;br /&gt;
 # sudo nano /etc/postgresql/9.1/main/pg_hba.conf&lt;br /&gt;
&lt;br /&gt;
Add these lines&lt;br /&gt;
&lt;br /&gt;
 host     all             angus           192.168.0.0/16          md5&lt;br /&gt;
 local    isikhnas        smsd                                    peer&lt;br /&gt;
&lt;br /&gt;
Edit postgresql.conf&lt;br /&gt;
&lt;br /&gt;
 # sudo nano /etc/postgresql/9.1/main/postgresql.conf&lt;br /&gt;
&lt;br /&gt;
Change the line to &lt;br /&gt;
&lt;br /&gt;
 Listen = '*'&lt;br /&gt;
&lt;br /&gt;
Reload the configuration&lt;br /&gt;
&lt;br /&gt;
 #  sudo service postgresql restart&lt;/div&gt;</summary>
		<author><name>Catriona</name></author>
		
	</entry>
</feed>