DSpace Customizations Quick Reference Manual
DSpace Customizations Quick Reference Manual
This
example
copied
the
dspace.cfg
file
to
a
file
called
dspace.cfg.bak.20120810
(the
20120810
being
the
date
of
the
change)
Files
/usr/local/dspace/config/dspace.cfg
/usr/local/dspace/webapps/xmlui/i18n
/usr/local/dspace/config/xmlui.conf
/usr/local/dspace/webapps/xmlui/themes
/usr/local/dspace/webapps/xmlui/themes/Reference/lib/style.css
/usr/local/dspace/webapps/xmlui/themes/Reference/images
/usr/local/dspace/config/news-xmlui.xml
/usr/local/dspace/config/default.license
/usr/local/dspace/config/input-forms.xml
/usr/local/dspace/config/item-submission.xml
/usr/local/dspace/config/emails/
Location
This
command
will
prompt
for
the
currently
running
users
password,
and
once
that
is
correctly
entered,
run
the
service
apache2
restart
command
as
the
root
user.
Another
userful
command
is
su.
This
allows
you
to
change
your
current
user
to
another
one.
For
example
the
command
su - dspace
Will
prompt
for
the
dspace
user
password,
and
then
log
in
as
the
dspace
user.
Now
commands
can
be
run
as
dspace.
Once
that
is
done,
typing
exit
You will need to enter the unix password of the logged in user for the command to work.
Generating
Thumbnails
When
you
add
bitstreams,
thumbnails
and
content
indexing
is
performed
asynchronously
by
the
dspace
filter-media
command
attached
to
a
cron
task.
By
default,
the
cron
task
is
set
to
run
in
the
dspace
users
crontab
once
a
night.
You
can
select
a
more
frequent
interval,
but
be
careful
that
you
dont
have
so
short
an
interval
that
runs
overlap.
You
can
also
run
this
process
manually
(for
example,
after
you
have
loaded
a
batch
of
images,
and
you
want
to
see
the
thumbnails).
To
do
this,
as
the
dspace
user,
run:
/usr/local/dspace/bin/dspace filter-media
This
will
scan
the
collection
for
all
unthumbnailed/unindexed
images
and
process
them.
If
you
change
the
thumbnail
size
in
the
dspace.cfg
file,
or
for
some
other
reason
want
to
delete
all
the
thumbnails
that
were
generated,
you
can
run
the
following
command
to
recreate
them
for
all
items.
To
do
this,
as
the
dspace
user,
run:
/usr/local/dspace/bin/dspace filter-media -f
PostgreSQL
Database
dspace
uses
the
PostgreSQL
database
to
store
almost
all
of
its
information
other
than
the
bitstreams.
Usually,
not
much
needs
to
be
done
with
postgreSQL
other
than
to
make
sure
that
it
is
running
before
the
tomcat
server
(that
hosts
dspace)
starts.
If
necessary
you
can
start,
stop,
or
restart
the
postgresql
server
by
running
the
following
command
as
a
user
who
has
sudo
privleges
sudo service postgresql start
This
creates
a
text
file
containing
the
SQL
commands
needed
to
recreate
the
dspace
database
in
/home/dspace/dspace.sql