Цитата:,sudo apt-get -y install linux-headers-$(uname -r) build-essential dkms
sudo mount /dev/cdrom /media/cdromПереходим на смонтированный диск
cd /media/cdromЗапускаем установки гостевых дополнений
sudo sh ./VBoxLinuxAdditions.runP.S. Возможно возникновение такой проблемы совпало с выходом новой версии VirtualBox (стоит 4.3.16). Пакеты загружаются для версии 4.3.18.
Цитата:Очень долго открывается мордочки, а если и открываются, то с ошибкой solr (Internal Error).что именно не работает-то?
Цитата:В каталог /etc/tomcat7/Catalina/localhost кладу xmlui.xml (также jspui, oai, solr) c содержимымПокажите каки xml'ки в вебаппс кладёте.
<Context path="/xmlui" docBase="/home/dspace/dspace/webapps/xmlui" reloadable="true" cachingAllowed="false" antiResourceLocking="false" />
Цитата:После добавления allowLinking="true" мордочки стали открываться быстрее. Но это после того, как полностью снес tomcat8 и поставил tomcat7. Не знаю почему, но java от пользователя tomcat забирала все ресурсы (нагрузка процессора до 100 %). Нагрузка была постоянной, даже не падала после ребута сервера.Ну и это... симлинки сделать не пробовали?
server {
listen 80;
server_name localhost;
#root /home/dspace/dspace/webapps/;
#charset koi8-r;
access_log /var/log/nginx/access.log main;
#location / {
# root /usr/share/nginx/html;
# index index.html index.htm;
#}
location / {
proxy_pass [127.0.0.1:8080];
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /solr/ {
proxy_pass [127.0.0.1:8080];
proxy_redirect [127.0.0.1:8080] [localhost:8080];
proxy_set_header Host $host;
proxy_set_header X-real_IP $remote_addr;
proxy_set_header X-Forwarded_for 127.0.0.1;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass [127.0.0.1];
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
Ну или прописать адрес в файле настроек solr dspace ([dspace]/config/modules/solr-statistics.cfg)
server [127.0.0.1:8080]
##### Email settings ###### # SMTP mail server mail.server = smtp.mail.ru # SMTP mail server authentication username and password (if required) mail.server.username = temporary.adress@mail.ru mail.server.password = ****** # SMTP mail server alternate port (defaults to 25) mail.server.port = 25 # From address for mail mail.from.address = temporary.adress@mail.ru # Currently limited to one recipient! feedback.recipient = ideafix@ideafix.name # General site administration (Webmaster) e-mail mail.admin = ideafix@ideafix.name # Recipient for server errors and alerts alert.recipient = ideafix@ideafix.name # Recipient for new user registration emails registration.notify = ideafix@ideafix.name # Set the default mail character set. This may be overridden by providing a line # inside the email template "charset: <encoding>", otherwise this default is used. mail.charset = UTF-8 # A comma-separated list of hostnames that are allowed to refer browsers to email forms. # Default behaviour is to accept referrals only from dspace.hostname mail.allowed.referrers = elar.rsvpu.ru # Pass extra settings to the Java mail library. Comma-separated, equals sign between # the key and the value. For example: mail.extraproperties = mail.smtp.socketFactory.port=465, \ mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \ mail.smtp.socketFactory.fallback=false # An option is added to disable the mailserver. By default, this property is set to false # By setting mail.server.disabled = true, DSpace will not send out emails. # It will instead log the subject of the email which should have been sent # This is especially useful for development and test environments where production data is used when testing functionality. #mail.server.disabled = false
mail.server.port = 465система начала слать письма. Но текст сообщения нуждается в редактировании.
sudo rm -rf /var/lib/tomcat7/webapps/ROOT2. Создаем симлинк на требуемую мордочку
sudo cd /var/lib/tomcat7/webapps sudo ln -s [dspace]/webapps/jspui ROOT3. Перезапускаем Tomcat
sudo service tomcat7 restart
Цитата:В качестве MTA используется не postfix, а exim4. Как необходимо настроить exim, чтобы отправлять письма в dspace c внешнего SMTP-сервера.А вот MTA в dsapce нет,только MUA. MTA надо внешними средствами делать... локальным постфиксом или внешним гугелем...
##### Email settings ######
# SMTP mail server
mail.server = 127.0.0.1
# SMTP mail server authentication username and password (if required)
# mail.server.username = ${mail.server.username}
# mail.server.password = ${mail.server.password}
# SMTP mail server alternate port (defaults to 25)
mail.server.port = 25
# From address for mail
mail.from.address = elar@usu.ru
# Currently limited to one recipient!
feedback.recipient = ideafix@ideafix.name
# General site administration (Webmaster) e-mail
mail.admin = ideafix@ideafix.name
# Recipient for server errors and alerts
alert.recipient = ideafix@ideafix.name
# Recipient for new user registration emails
registration.notify = ideafix@ideafix.name
# Set the default mail character set. This may be overridden by providing a line
# inside the email template "charset: <encoding>", otherwise this default is used.
mail.charset = UTF-8
# A comma-separated list of hostnames that are allowed to refer browsers to email forms.
# Default behaviour is to accept referrals only from dspace.hostname
mail.allowed.referrers = elar.urfu.ru
# Pass extra settings to the Java mail library. Comma-separated, equals sign between
# the key and the value. For example:
#mail.extraproperties = mail.smtp.socketFactory.port=465, \
# mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \
# mail.smtp.socketFactory.fallback=false
# An option is added to disable the mailserver. By default, this property is set to false
# By setting mail.server.disabled = true, DSpace will not send out emails.
# It will instead log the subject of the email which should have been sent
# This is especially useful for development and test environments where production data is used when testing functionality.
#mail.server.disabled = false
<Valve className="org.apache.catalina.valves.RemoteIpValve"
remoteIpHeader="X-Forwarded-For"
requestAttribtesEnabled="true"
internalProxies="127.0.0.1" />
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".log"
requestAttributesEnabled="true"
pattern="%h %l %u %t "%r" %s %b" />
Здесь обязательно необходимо указывать requestAttributesEnabled="true" в AccessLogValve, иначе запись в лог будет происходить без изменений.
location / {
proxy_pass [127.0.0.1:8080];
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# shutdown -h 02. Открываем командную строку
cd c:\Program Files\Oracle\VirtualBox\4. Выполняем команду
VBoxManage.exe modifyvm "VM name" --nataliasmode1 proxyonlyVM name - имя виртуальной машины.
VBoxManage.exe modifyvm "VM name" --nataliasmode1 proxyonlyпозволяет в логах получать реальные айпи клиентов. Чтобы перенаправлять запросы на виртуальный сервер, пробрасываем порты.
# chown -R tomcat7:tomcat7 /dspaceЕсли такое не сделать (не назначить рекурисвно владельца и его группу), то даже веб-мордочки не откроются.
dspace
su - dspaceи далее команда выше получаем сообщение, что нет доступа (Permission denied).
Никакого рута. Только unixway, а разве есть альтернативы?А как конкретно?