DSpace is the software of choice for academic, non-profit, and commercial organizations building open digital repositories. It is free and easy to install “out of the box” and completely customizable to fit the needs of any organization. DSpace preserves and enables easy and open access to all types of digital content including text, images, moving images, mpegs and data sets. And with an ever-growing community of developers, committed to continuously expanding and improving the software, each DSpace installation benefits from the next. If you are trying to promote your business then you need to get web application development.
taken from : http://www.dspace.org OK, from now please watch your eye, follow this intruction carefully
1. Installing Operating System : Writer using FreeBSD 7.0 Stable, please access this link for detail
http://unilanet.unila.ac.id/~gigih/index.php?option=com_content&task=view&id=33&Itemid=34
2. Environmental Construction
FreeBSD for the Java Development Kit (JDK) installed.
http://www.freebsdfoundation.org/downloads/java.shtml go get diablo-caffe-freebsd6-amd64-1.5.0_07-b01.tar.bz2
# mkdir /usr/ports/distfiles
# mv diablo-caffe-freebsd6-amd64-1.5.0_07-b01.tar.bz2 /usr/ports/distfiles/
# cd /usr/ports/java/diablo-jdk15
# make install clean
Set Environment Variables
create user:dspace and set home directory to /home/dspace
/home/dspace/.cshrc add the following config
setenv JAVA_HOME /usr/local/diablo-jdk1.5.0
setenv CLASS_PATH $JAVA_HOME/lib/tools.jar setenv CLASS_PATH $JAVA_HOME/lib/tools.jar
Installing Apache Ant
# cd /usr/ports/devel/apache-ant
# make install clean
Set Environment Variables
/home/dspace/.cshrc add the following
setenv ANT_HOME /usr/local/ant
setenv ANT /usr/local/bin/ant
Installing PostgreSQL
# cd /usr/ports/databases/postgresql80-client/
# make && make install clean
# cd /usr/ports/databases/postgresql80-server/
# make && make install clean
Database initialization postgres
#initdb
Editing configuration files
#cd /usr/local/pgsql/data
#vi postgresql.conf
(postgresql.conf to fix part of the following)
#listen_addresses = ‘localhost’ # Listen_addresses = ‘localhost’
↓ ↓
listen_addresses = ‘localhost’ listen_addresses = ‘localhost’#vi pg_hba.conf
(pg_hba.conf to add the following to the end.)
host dspace dspace 127.0.0.1/32 md5 host dspace dspace 127.0.0.1/32 md5
Starting postgres daemon postmaster
#pg_ctl start
or you can use
#/usr/local/etc/rc.d/postgresql start (first put postgresql_enable=”YES” on /etc/rc.conf)
Create Database
#Createdb-U dspace-E UNICODE dspace
At runtime the user running initdb (in this case, dspace) but it was also on PostgreSQL, this is not necessary to create a database user (dspace by someone other than if you run initdb required.)
Installing Tomcat
#cd /usr/ports/www/tomcat6/
#make && make install clean
starting Tomcat6
#/usr/local/etc/rc.d/tomcat6 start (first put tomcat6_enable=”YES” on /etc/rc.conf)
Check website, that our server already running Tomcat 6
http://yoursite.tld.com:8180
to make sure that we using port 8180, please check server.xml on this directory
#cd /usr/local/apache-tomcat6.0/conf
#vi server.xml— cuted———
<Connector port=”8180″ protocol=”HTTP/1.1″
connectionTimeout=”20000″
redirectPort=”8443″ />
<!– A “Connector” using the shared thread pool–>
<!–
Done , now we already have server support for java, tomcat, postgres platform
now we going move to preparing dspace instalation;
Source Deployment
> su
#cd /usr/local/apache-tomcat6.0/webapps/ (Download source)
#wget http://jaist.dl.sourceforge.net/sourceforge/dspace/dspace-1.4.2-source.tgz
#tar -zxvf dspace-1.4.2-source.tgz
#chown -R dspace.dspace /usr/local/src/dspace-1.4.2-source
#exit
Adding Java libraries
#cd /usr/ports/databases/postgresql-jdbc/
#maek && make install clean
Screen shoot log installing postgresql-jdbc
lemlit# cd /usr/ports/databases/postgresql-jdbc/
lemlit# make
===> Vulnerability check disabled, database not found
===> Extracting for postgresql-jdbc-8.3.603_1
=> MD5 Checksum OK for postgresql/postgresql-jdbc-8.3-603.src.tar.gz.
=> SHA256 Checksum OK for postgresql/postgresql-jdbc-8.3-603.src.tar.gz.
===> Patching for postgresql-jdbc-8.3.603_1
===> Applying FreeBSD patches for postgresql-jdbc-8.3.603_1
/usr/bin/sed -i.bak ‘s,/usr/local/pgsql/share/java,/usr/local/share/java/classes,’ /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/README
===> postgresql-jdbc-8.3.603_1 depends on file: /usr/local/diablo-jdk1.6.0/bin/java – found
===> postgresql-jdbc-8.3.603_1 depends on file: /usr/local/bin/ant – found
===> Configuring for postgresql-jdbc-8.3.603_1
===> Building for postgresql-jdbc-8.3.603_1
Buildfile: build.xmlall:
prepare:
[mkdir] Created dir: /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/build
[mkdir] Created dir: /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/jarscheck_versions:
check_driver:
driver:
[copy] Copying 1 file to /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/org/postgresql
[copy] Copying 1 file to /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/org/postgresql/util
[copy] Copying 1 file to /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/org/postgresql/ds
[copy] Copying 1 file to /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/org/postgresql/ds
[copy] Copying 1 file to /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/org/postgresql/ds
[echo] Configured build for the JDBC4 edition driver with SSLcompile:
[javac] Compiling 146 source files to /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/build
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.jar:
[jar] Building jar: /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/jars/postgresql.jarBUILD SUCCESSFUL
Total time: 4 seconds
lemlit#
This process will create one file postgresql.jar, and will be used by dspace program
now move to directory dspace source
#cd /usr/local/apache-tomcat6.0/webapps/dspace-1.4.2-source/config
#vi dspace.cfg
(The main changes are as follows)
dspace.dir = /usr/local/apache-tomcat6.0/webapps/dspace-1.4.2-source
dspace.url = http://[host name or IP address]:8180/dspace –> ex: http://lemlit.unila.ac.id:8180/dspace
dspace.hostname = [host name or IP address] –> ex : lemlit.unila.ac.id
dspace.name = [institution name] –> ex : Portal Ilmiah Universitas Lampung
mail.server= [smtp Server Name] –> ex : maiser.unila.ac.id
mail.from.address = [mail Administrator] –> ex : // <![CDATA[var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy61151 = ‘gigih’ + ‘@’;
addy61151 = addy61151 + ‘unila’ + ‘.’ + ‘ac’ + ‘.’ + ‘id’;
document.write( ‘‘ );
document.write( addy61151 );
document.write( ” );
// ]]>gigih@unila.ac.id
This email address is being protected from spam bots, you need Javascript enabled to view itfeedback.recipient = [mail Administrator] –> ex : // <![CDATA[
var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy20898 = ‘mailadm’ + ‘@’;
addy20898 = addy20898 + ‘unila’ + ‘.’ + ‘ac’ + ‘.’ + ‘id’;
document.write( ‘‘ );
document.write( addy20898 );
document.write( ” );
// ]]>mailadm@unila.ac.id
This email address is being protected from spam bots, you need Javascript enabled to view itmail.admin = [mail Administrator] –> ex : // <![CDATA[
var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy78434 = ‘adm’ + ‘@’;
addy78434 = addy78434 + ‘unila’ + ‘.’ + ‘ac’ + ‘.’ + ‘id’;
document.write( ‘‘ );
document.write( addy78434 );
document.write( ” );
// ]]>adm@unila.ac.id
This email address is being protected from spam bots, you need Javascript enabled to view it##### Database settings #####
# Database name (“oracle”, or “postgres”)
db.name = postgres —->> uncomment this line, because we using postgres as database master
#db.name = oracle# URL for connecting to database
db.url = jdbc:postgresql://localhost:5432/dspace# JDBC Driver
db.driver = org.postgresql.Driver# Database username and password
db.username = dspace
db.password = dspace
Now move to main dspace directory
#cd /usr/local/apache-tomcat6.0/webapps/dspace-1.4.2-source/
lemlit# ll
total 82
-rwxrwxrwx 1 1000 410 24422 May 9 2007 CHANGES
-rwxrwxrwx 1 1000 410 2927 May 9 2007 KNOWN_BUGS
-rwxrwxrwx 1 1000 410 1931 Nov 7 2006 LICENSE
-rwxrwxrwx 1 1000 410 729 May 9 2007 README
drwxrwxrwx 38 root 410 512 Jul 7 13:56 assetstore
drwxrwxrwx 2 1000 410 1024 May 9 2007 bin
drwxrwxrwx 4 root 410 512 Jul 7 12:51 build
-rwxrwxrwx 1 1000 410 18528 Jun 30 2006 build.xml
drwxrwxrwx 8 1000 410 512 Jul 7 09:41 config
drwxrwxrwx 4 1000 410 512 May 9 2007 docs
drwxrwxrwx 3 1000 410 512 May 9 2007 etc
drwxrwxrwx 3 root 410 512 Jul 7 11:51 handle-server
drwxrwxrwx 3 root 410 512 Jul 7 09:43 history
drwxrwxrwx 22 1000 410 1024 Jul 7 09:41 jsp
drwxrwxrwx 3 1000 410 1024 Jul 7 09:41 lib
drwxrwxrwx 2 root 410 512 Jul 7 11:49 log
drwxrwxrwx 2 root 410 512 Jul 7 09:41 reports
drwxrwxrwx 2 root 410 512 Jul 7 13:57 search
drwxrwxrwx 4 1000 410 512 May 9 2007 src
drwxrwxrwx 2 root 410 512 Jul 7 13:57 upload
lemlit#
Copy postgreejdbc library di directory lib
#cp /usr/ports/databases/postgresql-jdbc/work/postgresql-jdbc-8.3-603.src/jars/postgresql.jar /usr/local/apache-tomcat6.0/webapps/dspace-1.4.2-source/lib
# pwd
/usr/local/apache-tomcat6.0/webapps/dspace-1.4.2-source
#
Still on main directory of dspace, now we can run set up process, with this step
#ant fresh_install
Will appear like this text below
Buildfile: build.xml
compile:
install_code:
build_wars:
init_configs:
setup_database:
[java] 2010-07-06 12:09:05,040 INFO org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
[java] 2010-07-06 12:09:05,058 INFO org.dspace.core.ConfigurationManager @ DSpace logging installed using log4j.propertiesload_registries:
[java] 2010-07-06 12:09:08,546 INFO org.dspace.core.ConfigurationManager @ DSpace logging installed using log4j.properties
[java] 2010-07-06 12:09:09,125 INFO org.dspace.content.BitstreamFormat @ org.dspace.content.BitstreamFormat @ anonymous::update_bitstream_format:bitstream_format_id=9
[java] 2010-07-06 12:09:09,276 INFO anonymous::update_bitstream_format:bitstream_format_id=26
[java] 2010-07-06 12:09:09,492 INFO org.dspace.content.BitstreamFormat @ anonymous::create_bitstream_format:bitstream_format_id=27
org.dspace.administer.RegistryLoader @ anonymous::load_dublin_core_types:number_loaded=66fresh_install:
[java] INFO: Installing configuration files for other tools
[java] 2010-07-06 12:09:11,348 INFO org.dspace.core.ConfigurationManager @ DSpace logging installed using log4j.properties
[java] 2010-07-06 12:09:11,356 INFO org.dspace.core.ConfigurationManager @ Not processing config file template log4j.xml because no destination specified (no property config.template.log4j.xml)
[java] 2010-07-06 12:09:11,356 INFO org.dspace.core.ConfigurationManager @ Installing configuration file template oaicat.properties to /usr/local/apache-tomcat6.0/webapps/ROOT/dspace-1.4.2-source /config/oaicat.properties
[java] 2010-07-06 12:09:11,363 INFO org.dspace.core.ConfigurationManager @ Not processing config file template apache13.conf because no destination specified (no property config.template.apache13.conf)
[java] 2010-07-06 12:09:11,363 INFO org.dspace.core.ConfigurationManager @ Installing configuration file template log4j-handle-plugin.properties to /usr/local/apache-tomcat6.0/webapps/ROOT/dspace-1.4.2-source /config/log4j-handle-plugin.properties
[java] 2010-07-06 12:09:11,365 INFO org.dspace.core.ConfigurationManager @ Installing configuration file template log4j.properties to /usr/local/apache-tomcat6.0/webapps/ROOT/dspace-1.4.2-source /config/log4j.properties
[java] Indexing all Items in DSpace…. … Done
[echo]
[echo] ====================================================================
[echo] The DSpace code has been installed, and the database initialized.
[echo]
[echo] To complete installation, you should do the following:
[echo]
[echo] * Install the DSpace UI (dspace.war) and OAI-PMH (dspace-oai.war)
[echo] Web applications from the ‘build’ directory in the appropriate
[echo] place for your servlet container. e.g. ‘/opt/tomcat/webapps’
[echo]
[echo] * Make an initial administrator account (an e-person) in DSpace:
[echo]
[echo] /usr/local/apache-tomcat6.0/webapps/ROOT/dspace-1.4.2-source /bin/create-administrator
[echo]
[echo] * Start up your servlet container (Tomcat etc.)
[echo]
[echo] You should then be able to access your DSpace’s ‘home page’:
[echo]
[echo] http://lemlit.unila.ac.id:8180/dspace
[echo]
[echo] You should also be able to access the administrator UI:
[echo]
[echo] http://lemlit.unila.ac.id:8180/dspace/dspace-admin
[echo] ====================================================================
[echo]BUILD SUCCESSFUL
Total time: 9 seconds
lemlit#
copy the binary (.war extension to directory webapps Tomcat)
#cp /usr/local/apache-tomcat6.0/webapps/dspace-1.4.2-source/build/*.war /usr/local/apache-tomcat6.0/webapps
Finally Create The User administrator for maintaince dspace portal using create-administrator tool
#/usr/local/apache-tomcat6.0/webapps/dspace-1.4.2-source/bin/create-administrator
Creating an initial administrator account Creating an initial administrator account
E-mail address: [Email Administrator] –>> ex : // <![CDATA[var prefix = ‘ma’ + ‘il’ + ‘to’;
var path = ‘hr’ + ‘ef’ + ‘=’;
var addy61151 = ‘gigih’ + ‘@’;
addy61151 = addy61151 + ‘unila’ + ‘.’ + ‘ac’ + ‘.’ + ‘id’;
document.write( ‘‘ );
document.write( addy61151 );
document.write( ” );
// ]]>gigih@unila.ac.id
This email address is being protected from spam bots, you need Javascript enabled to view itFirst name: [name of administrator] –>> ex : Gigih Forda Nama
Last name: [last name of the Administrator] –> ex : PhD
WARNING: Password will appear on-screen. WARNING: Password will appear on-screen.
Password: [password for the Admin] ex : xxxyyyzzz
Again to confirm: [Password for Administrator] –>> ex : xxyyzz
Is the above data correct? (y or n): y Is the above data correct? (Y or n): y
Administrator account created Administrator account created
DONE, congratulation, your server already using DSPACE Program
You can access our portal science at this link
or
http://lemlit.unila.ac.id:8180/dspace
Credit:
1. Alloh subhanahuwatala
2. people around me
3. http://repository.kulib.kyoto-u.ac.jp/dspace-memo/dspace_install.html
4. DSPACE.org
5. www.google.com of cource 😀