|
Setup del sistema
nano /etc/apt/sources.list deb http://debian.fastweb.it/debian/ lenny main contrib non-free deb-src http://debian.fastweb.it/debian/ lenny main contrib non-free deb http://security.debian.org/ lenny/updates main contrib non-free deb-src http://security.debian.org/ lenny/updates main contrib non-free deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
apt-get update apt-get dist-upgrade
apt-get install gcc-4.1-locales libdbd-odbc-perl libdbd-pg-perl defoma-doc psfontmgr x-ttcidfont-conf make manpages-dev flex bison gdb libc6-dev-amd64 lib64gcc1 glibc-doc libfreetype6-dev libgd-tools libgtk2-perl-doc librsvg2-common ttf-kochi-gothic ttf-kochi-mincho ttf-baekmuk ttf-arphic-gbsn00lp ttfarphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp libtool-doc gcj cacertificates sgml-base-doc automake debhelper libmudflap0-dev libatk1.0-data libglib2.0-data hicolor-icon-theme libgtk2.0-bin libltdl3-dev gzip tar zip unzip make lynx wget ncftp ftp bzip2 fastjar mysql-server php5-mysql apache2 libapache2-mod-perl2 libmailtools-perl libhtml-format-perl libcompress-zlib-perl libxml-libxml-perl libunicode-string-perl libterm-readkey-perl libmime-lite-perl libdbd-mysql-perl libxml-parser-perl xml-core tinyca php5 php5-dev php-pear php5-mysql php5-gd libmail-sendmail-perl libio-socket-ssl-perl libhtml-template-perl php5-mcrypt gs xpdf antiword elinks defoma-doc psfontmgr x-ttcidfont-conf smbclient gs-gpl hpijs libfreetype6-dev pdftk gs-gpl smbfs libpaper-utils gsfonts-x11 tetex-bin psutils imagemagick wv tetex-extra libgdome2-0 libxml-saxwriter-perl libxml-libxml-common-perl libxml-simpleobject-enhanced-perl libxmlsimpleobject-libxml-perl libxml-simpleobject-perl libxml-smart-perl libxml-saxperl libxml-namespacesupport-perl libparse-yapp-perl libio-pty-perl libxmllibxml-common-perl libxml-regexp-perl libxml-dom-perl libgdome2-dev libxml2-dev libglib2.0-doc libgnome-dev libmcrypt-dev mcrypt libipc-sharedcache-perl libjasper-runtime munin-node ntpdate liblcms-utils libwmf-bin libmime-base64-perl libqt4-dev libterm-readline-gnu-perl libterm-readline-perl-perl libapache2-mod-perl2-dev
Creazione dell’utente di sistema
adduser --system --home /opt/eprints3 --group eprints adduser www-data eprints
nano /etc/passwd eprints:x:105:105::/opt/eprints3:/bin/sh
Installazione di EPrints
wget http://files.eprints.org/447/1/eprints-3.1.3.tar.gz tar zxvf eprints-3.1.3.tar.gz cd eprints-3.1.3 ./configure --with-smtp-server=out.alice.it ./install.pl
Setup di Apache2
nano /etc/apache2/sites-available/eprints Include /opt/eprints3/cfg/apache.conf a2ensite eprints cd /etc/apache2/sites-enabled/ mv 000-default 00000 cp eprints 000-default ln -s /opt/eprints3/bin/epindexer /etc/init.d/epindexer update-rc.d epindexer defaults 99 99
Creazione del repository
su eprints cd bin/epadmin create
Archive ID? docs Configure vital settings [yes] ? Hostname? eprints.ced.local Webserver Port [80] ? Alias (enter # when done) [#] ? Administrator Email?
Questo indirizzo e-mail è protetto dallo spam bot. Abilita Javascript per vederlo.
Archive Name [Test Repository] ? Eprints Write these core settings? [yes] ? Configure database? [yes] ? Database Name [docs] ? MySQL Host [localhost] ? You probably don't need to set socket and port (unless you do!?). MySQL Port (# for no setting) [#] ? MySQL Socket (# for no setting) [#] ? Database User [docs] ? root Database Password [G7xOp1Jf] ? root Write these database settings? [yes] ? EPrints can create the database, and grant the correct permissions. Create database "docs" [yes] ? Ok, I’ll need to connect to the mysql database as root. What is the root password? MySQL Root Password? root Connecting to the database…MySQL version id 50032 >= 40100 MYSQL OLD PASSWORDS will be used for compatibility with DBI::mysqlSetting MySQL privsDisconnecting from database. Create database tables? [yes] ? Creating database tables…Set DB compatibility flag to ‘3.1.1′. Done creating database tables. Create an initial user? [yes] ? Creating a new user in docs Enter a username [admin] ? Select a user type (user|editor|admin) [admin] ? Enter Password? admin Email?
Questo indirizzo e-mail è protetto dallo spam bot. Abilita Javascript per vederlo.
Successfully created new user: ID: 1 Do you want to build the static web pages? [yes] ? Do you want to import the LOC subjects? [yes] ? Done reindexing Ending EPrints Session. Exiting normally. Do you want to update the apache config files? (you still need to add the’Include’ line) [yes] ? Creating system wide apache conf files. Creating /opt/eprints3/cfg/apache.conf Creating /opt/eprints3/var/auto-apache.conf Creating /opt/eprints3/var/auto-apache-includes.conf Creating apache conf files for repository docs Creating /opt/eprints3/archives/docs/cfg/apache.conf Creating /opt/eprints3/archives/docs/cfg/apachevhost.conf Creating /opt/eprints3/archives/docs/var/auto-apache.conf
Aggiunta del supporto lingua Italiano
cd archives/ibim/cfg/lang/en/ rm phrases/* wget http://files.eprints.org/409/2/phrases.zip unzip phrases.zip cd bin/epadmin reload docs exit
Riavvio di Apache2
/etc/init.d/apache2 force-reload
Installazione di Eprints su Debian 5.0
|