Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-01-2013, 10:09 AM   #1
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,280

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
Installing DSpace, Slackware 64-bit 14.0 (stable)

From the DSpace web page (
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.
Requirements are:
  • Unix-like OS (Slackware 64-bit 14.0);
  • Oracle JDK (6 or 7, I'm at 7u25);
  • Apache-Maven;
  • Apache-Ant;
  • PostgreSQL;
  • Apace-Tomcat;
  • Perl (optional, probably won't be used);
  • DSpace binary or source (I have the source).
All the above, except DSpace source) are from or, in the case of JDK, built from the Slackware-provided SlackBuild from the /extra directory.

Now, I'm getting stupider by the hour and this one I just can't get my head wrapped around:
Note that DSpace will need to run as the same user as Tomcat, so you might want to install and run Tomcat as a user called 'dspace'. Set the environment variable TOMCAT_USER appropriately.

You need to ensure that Tomcat has a) enough memory to run DSpace and b) uses UTF-8 as its default file encoding for international character support. So ensure in your startup scripts (etc) that the following environment variable is set: JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"
There need to be two users, tomcat and dspace and, if I remember correctly, you can't have two users with the same UID, so what the heck is the "right" way to do this? I can fiddle with the Apache-Tomcat SlackBuild (making it dspace) or... I dunno what -- I'm just brain dead here.

Sure would appreciate some input from somebody that's actually done a DSpace installation or anybody that's got more smarts than me and might point in the right direction.

Old 07-01-2013, 10:19 AM   #2
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,963

Rep: Reputation: Disabled
Looks like you create one user account (whether it is called 'tomcat' or 'dspace' or 'santa' is not relevant) and start both tomcat and dspace with that same user account. Probably the user account will be configurable in a configuration file like it is done in "/etc/httpd.conf" for apache httpd.

Old 07-01-2013, 11:01 AM   #3
Mark Pettit
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 14.1 64 Multi-Lib
Posts: 481

Rep: Reputation: 162Reputation: 162
Hmm - I thought you can have 2 users with the same UID. You simply copy+paste the entry in /etc/passwd and modify the name entry. I know (from my work) that auditors hate that, but I do think it works.
Old 07-01-2013, 11:35 AM   #4
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,280

Original Poster
Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
OK, so here's what I'm thinking -- Apache-Tomcat installs first, I don't want to mess with the SlackBuild (so I don't have to remember the lie I told when an update comes along) so build and install it with the tomcat user id and group then edit passwd, shadow and group just changing "tomcat" to "dspace." Probably going to have to change the home directory later (DSpace, I'm pretty sure, is a log in account where Tomcat is not -- it just lives in /var/lib/tomcat with symbolic links to /etc). Seems like it ought to work.

@Mark_Pettit: Yeah, I've done that (back in System 3, SVR4 and Solaris days) and, yeah, the auditors yammer at you (deservedly) about doing it, and, yup it would probably work, but... this system is going to be in use for a long, long time in an institutional setting and, well, just don't wanna do that unless I absolutely, positively, have to, know what I mean. Thanks for the thought.

Haven't had this much fun since the first time I built Apache from scratch on a Solaris box about 20 years ago. Whee!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing skype on slackware 64 bit fogpipe Slackware 2 09-05-2012 02:15 AM
No -stable 32-bit (x86) changelog at Lufbery Slackware 21 04-24-2012 08:11 AM
Anyone Using DSpace..? crash_override_me Linux - Software 2 06-08-2007 02:59 PM

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration