Install_Dspace_Server
Install_Dspace_Server Prerequisites Software All software CD's will be supplied as part of the conference.
What version of Ubuntu do you use for the server? We use the LTS versions for Ubuntu for servers. What does LTS mean ? Long Term Supported. See the picture below.
For more information about the Ubuntu 8.04 LTS server go to: http:/ / www. ubuntu. sun. ac. za/ wiki/ index. php/ Enterprise_Server_Management, on our campus Ubuntu help wiki.
1
Install_Dspace_Server
Hardware This is debatable, but a fairly powerful machine with enough disk storage capacity to hold your anticipated digital archives is recommended.
Installation It is fairly easy to install the Ubuntu 8.04 LTS server software. Please follow all the instructions of the facilitators during the installation. The installation will be done step-by-step so that everyone proceeds at the same pace. Please note: Use the "TAB" key to move between items, the "SPACE" key to select items and the "ENTER" key to activate buttons with the installation dialogs.
Ubuntu 8.04 LTS Installation Screenshots
2
Install_Dspace_Server
3
Install_Dspace_Server
• Language selection. Select "South Africa".
Keyboard setup. Select "No".
4
Install_Dspace_Server
5
Install_Dspace_Server
• Hostname setup. Type in the hostname of the server. This is labeled on the computer.
6
Install_Dspace_Server
• Partition setup. Select manual and wait for instructions.
7
Install_Dspace_Server
8
Install_Dspace_Server
• Create "dspace" admin user. Enter full name.
• Create "dspace" admin user. Enter username.
9
Install_Dspace_Server
• Create "dspace" admin user. Enter password.
• Create "dspace" admin user. Confirm password.
10
Install_Dspace_Server
• Setup installation type. Select "LAMP", "OpenSSH" and "PostgreSQL" installation and wait for instructions.
11
Install_Dspace_Server
• Setup installation type. Correct selection displayed.
• Select "Continue" and press "Enter" on the keyboard.
12
Install_Dspace_Server
• Setup "MySQL" root password. Please wait before entering a password.
13
Install_Dspace_Server
After Installation How to setup the repositories using a console and the command line Step 1 On your client PC with the Ubuntu desktop live CD, click on: Applications => Accessories => Terminal to open a command line terminal. Step 2 Login to your remote server as the "dspace" user by typing as follows in the terminal. ssh dspace@%hostname% Replace %hostname% with the hostname of your server. Step 3 Type the following in a console/terminal/xterm: sudo cp /etc/apt/sources.list /etc/apt/sources.list-backup sudo nano /etc/apt/sources.list Step 4 Delete all of the existing contents in the /etc/apt/sources.list file using the CTL+K key repeatedly and then add the following using the copy and paste functions of "nano" and "firefox";
14
Install_Dspace_Server
15
deb ftp://ftp.sun.ac.za/ubuntu hardy main restricted universe multiverse deb ftp://ftp.sun.ac.za/ubuntu hardy-updates main restricted universe multiverse deb ftp://ftp.sun.ac.za/ubuntu hardy-security main restricted universe multiverse Step 5 Save the file by typing CTL+O. Exit "nano" by typing CTL+X. Step 6 Type: sudo aptitude update to update the repository list. Step 7 Type: sudo aptitude dist-upgrade to upgrade to the latest software.
Next Procedure Well done with the installation of your Ubuntu server !! If everything is OK, then proceed to the setup of the server for the Dspace installation. Optional • Download the internet access software for the campus internet proxy server. connect to the internet on the campus of the University of Stellenbosch only.
[1]
This is to
Test Excercise: Setup a Wordpress blog Tip: Give your blog a nice theme by visiting: http:/ / www. dailyblogtips. com/ wordpress-themes.
Login from client PC On your client PC with the Ubuntu desktop live CD, click on: Applications => Accessories => Terminal to open a command line terminal. Login to your remote server as the "dspace" user by typing as follows in the terminal ssh dspace@%hostname% Replace %hostname% with the hostname of your server. Become the root admin user by typing as follows: sudo -i
Install_Dspace_Server
Get and install blog software Download the blog software from the Wordpress web site as follows: wget http:/ / services. lib. sun. ac. za/ files/ wordpress-2. 8. 4. tar. gz''' Extract the software from the downloaded archive to the web folder to be used for the blog as follows: mkdir /var/www/blog tar -C /var/www/blog -xzvf wordpress-2.8.4.tar.gz
Setup blog MySQL database Create a database for the blog as follows: mysqladmin -u root -p create blog Setup a database user to be able to access the database from the localhost as follows: mysql -u root -p This will get you into the MySQL server. Now setup database permissions in the MySQL server as follows: mysql>GRANT ALL ON blog.* TO 'blog'@'localhost' IDENTIFIED BY 'blog' ; mysql>quit
Setup blog configuration Now open a browser and go to the blog web address, for example: http:/ / %hostname%/ blog''' Replace %hostname% with the web address of your server. You will be prompted for the following blog configuration details. database name = blog database username = blog database password = blog database hostname = localhost Just follow the installation instructions using the above database details.
16
Install_Dspace_Server
References • • • • • • • •
http:/ / www. ubuntu. com http:/ / www. ubuntu. com/ support/ services/ pse http:/ / ubuntu. sun. ac. za http:/ / www. ubuntu. sun. ac. za/ wiki/ index. php/ LAMP http:/ / www. ubuntugeek. com/ ubuntu-804-hardy-heron-lamp-server-setup. html http:/ / www. howtoforge. net/ perfect-server-ubuntu8. 04-lts https:/ / help. ubuntu. com/ community/ UsingTheTerminal http:/ / www. ubuntu. sun. ac. za/ wiki/ index. php/ Support
Command Line Help Go to: http:/ / www. ubuntu. sun. ac. za/ wiki/ index. php/ SelfHelp for more help about the command line programs used in this procedure.
PDF Version The PDF version is downloadable from: • http:/ / services. lib. sun. ac. za/ files/ dspace/ Install_Dspace_Server. pdf
References [1] http:/ / www. ubuntu. sun. ac. za/ inetkey/ sinetkey
17
Article Sources and Contributors
Article Sources and Contributors Install_ Dspace_ Server Source: http://services.lib.sun.ac.za/wiki/index.php?title=Install_Dspace_Server Contributors: Hgibson
Image Sources, Licenses and Contributors Image:Ubuntu-release-cycle.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-release-cycle.png License: unknown Contributors: Hgibson Image:Ubuntu-server-1.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-1.png License: unknown Contributors: Hgibson Image:Ubuntu-server-2.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-2.png License: unknown Contributors: Hgibson Image:Ubuntu-server-3.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-3.png License: unknown Contributors: Hgibson Image:Ubuntu-server-4.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-4.png License: unknown Contributors: Hgibson Image:Ubuntu-server-5.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-5.png License: unknown Contributors: Hgibson Image:Ubuntu-server-6.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-6.png License: unknown Contributors: Hgibson Image:Ubuntu-server-7.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-7.png License: unknown Contributors: Hgibson Image:Ubuntu-server-8.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-8.png License: unknown Contributors: Hgibson Image:Ubuntu-server-9.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-9.png License: unknown Contributors: Hgibson Image:Ubuntu-server-10.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-10.png License: unknown Contributors: Hgibson Image:Ubuntu-server-11.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-11.png License: unknown Contributors: Hgibson Image:Ubuntu-server-12.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-12.png License: unknown Contributors: Hgibson Image:Ubuntu-server-13.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-13.png License: unknown Contributors: Hgibson Image:Ubuntu-server-14.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-14.png License: unknown Contributors: Hgibson Image:Ubuntu-server-15.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-15.png License: unknown Contributors: Hgibson Image:Ubuntu-server-16.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-16.png License: unknown Contributors: Hgibson Image:Ubuntu-server-17.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-17.png License: unknown Contributors: Hgibson Image:Ubuntu-server-18.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-18.png License: unknown Contributors: Hgibson Image:Ubuntu-server-19.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-19.png License: unknown Contributors: Hgibson Image:Ubuntu-server-20.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-20.png License: unknown Contributors: Hgibson Image:Ubuntu-server-21.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-21.png License: unknown Contributors: Hgibson Image:Ubuntu-server-22.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-22.png License: unknown Contributors: Hgibson Image:Ubuntu-server-23.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-23.png License: unknown Contributors: Hgibson Image:Ubuntu-server-24.png Source: http://services.lib.sun.ac.za/wiki/index.php?title=File:Ubuntu-server-24.png License: unknown Contributors: Hgibson
18