LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

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

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


From the DSpace web page (http://www.dspace.org):
Quote:
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 SlackBuilds.org 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:
Quote:
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.

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

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.

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

Rep: Reputation: 123Reputation: 123
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, 10:35 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 2,994

Original Poster
Rep: Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737Reputation: 737
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!
 
  


Reply


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 01:15 AM
No -stable 32-bit (x86) changelog at slackware.com? Lufbery Slackware 21 04-24-2012 07:11 AM
Anyone Using DSpace..? crash_override_me Linux - Software 2 06-08-2007 01:59 PM


All times are GMT -5. The time now is 12:25 PM.

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