Thursday, December 1, 2011

Installing Dspace 1.8 on Ubuntu 10.04

Installation of prerequisite applications

Open  Applications > Accessories > Terminal and execute following commands. Text in italics are commands to be executed.

sudo apt-get install openjdk-6-jdk

sudo apt-get install tasksel
sudo tasksel


Select the following packages.
Use space bar for select applications from list.
[*] LAMP server
[*] PostgreSQL database
[*] Tomcat Java server
  use tab to select OK button and enter

sudo apt-get install ant maven2 

Create the database user (dspace)

sudo su postgres

createuser -U postgres -d -A -P dspace

enter password for new role (select a password like dspace)
Shall the new role be allowed to create more new roles? (y/n) n

Exit from the promp, type

exit

Allow the database user (dspace) to connect to the database

sudo gedit /etc/postgresql/8.4/main/pg_hba.conf

Add this line to the configuration file at the end:  local all dspace md5
save and close the file 

Restart PostgreSQL : sudo su      enter,

then paste the following line and enter

/etc/init.d/postgresql-8.4 restart

Create the Unix 'dspace' user, update the passwd, create the directory in which you will install dspace, and ensure that the Unix 'dspace' user has write privileges on that directory:

sudo useradd -m dspace

sudo passwd dspace (enter any password like dspace for the new user dspace)

sudo mkdir /dspace

sudo chown dspace /dspace

Create the PostgreSQL 'dspace' database.
sudo -u dspace createdb -U dspace -E UNICODE dspace 

Configure Tomcat to know about the DSpace webapps.


sudo gedit /etc/tomcat6/server.xml


 Insert the following chunk of text just above the closing </Host>
<!-- Define a new context path for all DSpace web apps -->
<Context path="/xmlui" docBase="/dspace/webapps/xmlui" allowLinking="true"/>
<Context path="/sword" docBase="/dspace/webapps/sword" allowLinking="true"/>
<Context path="/oai" docBase="/dspace/webapps/oai" allowLinking="true"/>
<Context path="/jspui" docBase="/dspace/webapps/jspui" allowLinking="true"/>
<Context path="/lni" docBase="/dspace/webapps/lni" allowLinking="true"/>
<Context path="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>
save and close  the file a

This following  step downloads the compressed archive from SourceForge, and unpacks it in your current directory. The dspace-1.x.x-src-release directory is typically referred to as [dspace-src].

sudo mkdir /build
sudo chmod -R 777 /build
cd /build
wget http://sourceforge.net/projects/dspace/fil&nbsp;es/DSpace%20Stable/1.8.0/dspace-1.8.0-src-release.tar.bz2
tar -xvjf dspace-1.8.0-src-release.tar.bz2

cd /build/dspace-1.8.0-src-release
mvn -U package
cd dspace/target/dspace-1.8.0-build
sudo ant fresh_install

Fix Tomcat permissions, and restart the Tomcat server


sudo chown tomcat6:tomcat6 /dspace -R
Restart Tomcat

/etc/init.d/tomcat6 restart

 Make an initial administrator account (an e-person) in DSpace:

/dspace/bin/dspace create-administrator

Test it out in your browser

That is all that is required to install DSpace on Ubuntu. There are two main webapps that provide a similar turn-key repository interface
http://localhost:8080/xmlui
http://localhost:8080/jspui

Reference

Sunday, November 13, 2011

How to update Grub ?

In certain cases while Linux installation, other operating system (e.g. Windows) not detected and listed in star up.  In such cases you can update grub from Linux. Open a terminal and execute the following commands,

sudo su
update-grub

Restart your system

Sunday, October 23, 2011

How to change Ubuntu 10.04 login screen image

Execute the following command in a terminal,

sudo cp /usr/share/applications/gnome-appearance-properties.desktop /usr/share/gdm/autostart/LoginWindow

Copy an image to /usr/share/backgrounds

cp yourimage.jpg /usr/share/backgrounds

Logout Ubuntu.
You can see a window will pop up, select "Wallpaper" and locate the desired image. You can change the image from there.

Login to system and open a terminal and execute following command,

sudo unlink /usr/share/gdm/autostart/LoginWindow/gnome-appearance-properties.desktop

Friday, October 21, 2011

Switch from Unity to Gnome in Ubuntu 11.10

Enter the following command in Terminal,


sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell
 
Reboot PC. 

Format and rename USB drive using commands

Plugin your USB Drive.

And execute the following commands via Terminal.

sudo umount /dev/sdb1
sudo mkdosfs -n 'YOURNAME' -I /dev/sdb1

Sunday, October 16, 2011

How to change boot theme by using Plymouth Manager

Plymouth Manager Installation
Open a terminal and apply following commands,

sudo apt-add-repository ppa:mefrio-g/plymouthmanager
sudo apt-get update
sudo apt-get install plymouth-manager

Plymouth Manager will appear in Applications > System Tools


Monday, October 10, 2011