System Installation
From DISMARC Help
This Help guides throu the intalltion of the MDM on a Debin system.
Our Sticks ship with Ubuntu 8.04 and which is used throughout this help.
Contents |
OS Settings
Its better to define a standard IP address because this installation will be a server. In order to make the installtion accessable through the internet, you need to define some NAT on your router. Please read the documentaion for your router to map the default HTTP port 80 to the IP address of the the new installtion.
In case you don't use X I'm sure you know to change the IP address of your computer. In all other cases, hit <ALT>+<F2> and type network-admin. You can change the settings there.
Zebra installtion
For an MDM Instance, you need a Zebra Index Server by Indexdata. The installtion is pretty easy.
As you know, Ubuntu does not have a dedicated root user. Instead, you just have to type sudo in front of a command and enter the password of the installtion user.
Ok, first we need a terminal. Hit <ALT>+<F2> and enter gnome-terminal to open a shell.
Now type in or cpy the following comamnds:
sudo bash
this opens the root shell and we don't have to type sudo all the time.
gedit /etc/apt/sources.list
Now add these lines to the bottom of the file
# Zebra deb http://ftp.indexdata.dk/debian etch main deb-src http://ftp.indexdata.dk/debian etch main
Ok, save and close the file.
In order for apt (which is the installtion tool son debian systems) to work with the Zebra packages, we need to install a key. Just type these lines into the console
wget http://ftp.indexdata.dk/debian/indexdata.asc apt-key add indexdata.asc apt-get update
Since Ubuntu 8.04, we need to install some additional packages for zebra to work properly. These commands will help there.
wget http://launchpadlibrarian.net/10470097/libicu36-dev_3.6-10_i386.deb dpkg -i libicu36-dev_3.6-10_i386.deb wget http://launchpadlibrarian.net/10470096/libicu36_3.6-10_i386.deb dpkg -i libicu36_3.6-10_i386.deb apt-get -f install
In case of some error messages popping up, don't mind them. The last command should have fixed everything.
Now it's time to install zebra. In one line, we install some more stuff.
apt-get install yaz libyaz2-dev libyaz2 yaz-icu libicu36 libicu36-dev idzebra-2.0 libidzebra-2.0-modules libidzebra-2.0-mod-grs-xml libidzebra-2.0-mod-grs-regx libidzebra-2.0
That's it, zebra is installed.
The nice thing about that is, that Zebra will be updated throuth Ubuntus update routine now.
You can now close the terminal window.
Other resources
Ok, first we need a terminal. Hit <ALT>+<F2> and enter gnome-terminal to open a shell.
sudo bash
this will open a shell as root.
apt-get install apache2 php5 php5-sqlite php5-pgsql php5-mysql php5-yaz php5-xsl php5-curl php5-curl php5-gd php5-cli apt-get install subversion cvs proftpd
That's it! proftp should be installed as server from Inetd
apt-get install postfix
postfix is a satellite server
Now we need some mysql too
apt-get install yaz libyaz2-dev libyaz2 yaz-icu libicu36 libicu36-dev idzebra-2.0 libidzebra-2.0-modules libidzebra-2.0-mod-grs-xml libidzebra-2.0-mod-grs-regx libidzebra-2.0
some additional gui tools are installed with that one
you have prepared the system for MDM to run. It's time to install the MDM itself now.
MDM installation
First, you need to obtain the lastest package from !!CSV!! Extract it to your webservers directory which would be /srv/www/htdocs firest, delete everything that is in this folder.
sudo rm -rf /srv/www/htdocs/* cd /srv/www/htdocs tar -xzf $HOME/Desktop/mdmDismarc.tar.gz chown -R www-data:www-data /srv/www/htdocs