Dspace installation on Debian Squeeze

I am mentioning my practical experience of Dspace installation on Debian Squeeze. I hope, you can do
it and this will help you.
First make a dspace user in debian for Dspace.
root@dir:~#adduser dspace
Then install other softwares as prerequisites for Dspace installation. It is a good approach to
install sun-java6.
root@dir:~# apt-get install sun-java6-jdk
root@dir:~#update-java-alternatives -v -s java-6-sun
root@dir:~# apt-get install tomcat6
root@dir:~#apt-get install maven2
root@dir:~#apt-get install postgresql-8.4
After installing prerequisite softwares, create dspace database in postgresql for Dspace use.
root@dir:~# cd /home/dspace/
root@dir:/home/dspace# su postgres
postgres@dir:/home/dspace$ createuser -U postgres -d -A -P dspace
Enter password for new role:
Enter it again:
Shall the new role be allowed to create more new roles? (y/n) n
postgres@dir:/home/dspace$ exit
exit
root@dir:/home/dspace# su dspace
dspace@dir:~$ createdb -U dspace -E UNICODE dspace
After that download the latest version of Dspace and set right configuration
root@dir:/home/dspace/dspace-1.8.2-src-release#nano dspace/config/dspace.cfg
Thereafter build Dspace by running the following command
root@dir:/home/dspace/dspace-1.8.2-src-release/dspace# mvn package
[INFO] Scanning for projects…
Downloading: http://repo1.maven.org/maven2/org/dspace/dspace-pom/10/dspace-pom-10.pom
[WARNING] Unable to get resource ‘org.dspace:dspace-pom:pom:10’ from repository central
(http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org
[INFO] ————————————————————————
[ERROR] FATAL ERROR
[INFO] ————————————————————————
[INFO] Error building POM (may not be this project’s POM).
Project ID: org.dspace:dspace-parent:pom:1.8.2
Reason: Cannot find parent: org.dspace:dspace-pom for project: org.dspace:dspace-parent:pom:1.8.2
for project org.dspace:dspace-parent:pom:1.8.2
[INFO] ————————————————————————
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.dspace
If you have problem in your Internet connectivity, you will get the above messages. These messages
also can get, if you have proxy in your Internet connectivity. To solve this problem, set proxy in you
maven configuration file.
root@dir:/home/dspace/dspace-1.8.2-src-release/dspace#nano /etc/maven2/settings.xml
Uncomment and set you proxy in the following section-

optional
true
http

proxy.iub.edu.bd
3000
localhost

root@dir:/home/dspace/dspace-1.8.2-src-release/dspace# mvn package
root@dir:/home/dspace/dspace-1.8.2-src-release/dspace# cd target/dspace-1.8.2-build/
root@dir:/home/dspace/dspace-1.8.2-src-release/dspace/target/dspace-1.8.2-build# ant fresh_install

To complete installation, you should do the following:
Setup your Web servlet container (e.g. Tomcat) to look for your DSpace web applications in:

/home/dspace/webapps/
OR
copy any web applications from /home/dspace/webapps/ to the appropriate place for your servlet
container. (e.g. ‘$CATALINA_HOME/webapps’ for Tomcat)
Create E-person in Dsapce by using the command-
root@dir:/home/dspace/dspace-1.8.2-src-release/dspace# /home/dspace/bin/dspace create-administrator

Set Permission and owner for DSpace

root@dir:~#chmod -R 755 /home/dspace/

root@dir:~#chown -R dspace:dspace /home/dspace/
Finally you can get your Dsapce by pointing the address in your web browser:
http://localhsot:8080/xmlui

OR

http://localhost:8080/jspui

Advertisements

8 Comments

  1. dspace@debian:~/dspace-1.8.2-src-release/dspace/target/dspace-1.8.2-build$ ant fresh_install
    Buildfile: /home/dspace/dspace-1.8.2-src-release/dspace/target/dspace-1.8.2-build/build.xml

    init_installation:

    BUILD FAILED
    /home/dspace/dspace-1.8.2-src-release/dspace/target/dspace-1.8.2-build/build.xml:705: Directory /dspace/bin creation was not successful for an unknown reason

    Total time: 1 second
    dspace@debian:~/dspace-1.8.2-src-release/dspace/target/dspace-1.8.2-build$ ant fresh_install
    Buildfile: /home/dspace/dspace-1.8.2-src-release/dspace/target/dspace-1.8.2-build/build.xml

    init_installation:

    BUILD FAILED
    /home/dspace/dspace-1.8.2-src-release/dspace/target/dspace-1.8.2-build/build.xml:705: Directory /dspace/bin creation was not successful for an unknown reason

    Total time: 1 second
    dspace@debian:~/dspace-1.8.2-src-release/dspace/target/dspace-1.8.2-build$

    1. nano /etc/tomcat6/server.xml

      Change this section

      As the following

      Then create DSpace Administrator account

      [root@localhost dspace-1.8.2-build]# /dspace/bin/dspace create-administrator

      Creating an initial administrator account

      E-mail address: nurahammad@iub.edu.bd

      First name: Nur

      Last name: Ahammad
      WARNING: Password will appear on-screen.

      Password:Password

      Again to confirm: Password

      Is the above data correct? (y or n): y

      Administrator account created

      Set Permission and ownership for DSpace

      [root@localhost nurahammad]#chmod -R 755 /home/dspace/

      [root@localhost nurahammad]#chown -R dspace:dspace /home/dspace/

      Finally you can get your Dsapce by pointing the address in your web browser:

      http://localhsot:8080/xmlui

      OR

      http://localhost:8080/jspui

    2. nano /etc/tomcat6/server.xml

      * Change this section*

      *As the following*

      *Then create DSpace Administrator account*

      [root@localhost dspace-1.8.2-build]# /dspace/bin/dspace create-administrator

      Creating an initial administrator account

      E-mail address: nurahammad@iub.edu.bd

      First name: Nur

      Last name: Ahammad

      WARNING: Password will appear on-screen.

      Password:Password

      Again to confirm: Password

      Is the above data correct? (y or n): y

      Administrator account created

      *Set Permission and ownership for DSpace*

      [root@localhost nurahammad]#chmod -R 755 /home/dspace/

      [root@localhost nurahammad]#chown -R dspace:dspace /home/dspace/

      *Finally you can get your Dsapce by pointing the address in your web browser:*

      http://localhsot:8080/xmlui

      OR

      http://localhost:8080/jspui

  2. Dear Nur Vai,
    i have found this bellow but can’t access from http://localhsot:8080/xmlui OR http://localhost:8080/jspui

    root@debian:/etc/tomcat6# /dspace/bin/dspace create-administrator
    Creating an initial administrator account
    E-mail address: foizahmed54@gmail.com
    First name: Foiz
    Last name: Ahmed
    WARNING: Password will appear on-screen.
    Password: cvasu01
    Again to confirm: cvasu01
    Is the above data correct? (y or n): y
    Administrator account created
    root@debian:/etc/tomcat6# chmod -R 755 /home/dspace/
    root@debian:/etc/tomcat6# chown -R dspace:dspace/home/dspace
    chown: missing operand after `dspace:dspace/home/dspace’
    Try `chown –help’ for more information.
    root@debian:/etc/tomcat6# chown -R dspace:dspace /home/dspace
    root@debian:/etc/tomcat6# /etc/init.d/tomcat6 restart
    Stopping Tomcat servlet engine: tomcat6.
    Starting Tomcat servlet engine: tomcat6 failed!

  3. Boss, finally i have done. Thank you so much and i am so grateful to you. Boss keep me in your touch always….. Foiz

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s