Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
cd /var/www/avalon/config
cp authentication.yml.example config/authentication.yml
vi database.yml

Replace

...

what's

...

in

...

database.yml

...

with:

Code Block
development:
  adapter: mysql2
  host: localhost
  database: rails
  username: rails
  password: rails
  pool: 5
  timeout: 5000
Code Block
yum install mysql-devel
su - avalon
gem install activerecord-mysql2-adapter
gem install mysql2
su - root
vi /var/www/avalon/Gemfile

Add

...

this

...

line

...

to

...

the

...

Gemfile:

Code Block
gem 'mysql2', '~>0.3.11'

...

Code Block
rake db:migrate

set Set rails environment to development

Visit port 80

Sign in

Create identity:

archivist1@example.com

password/password

This is a known identity with administrative privileges.

 

Start delayed_job:

in /var/www/avalon (as avalon user)

bundle exec rake delayed(it is by default)

On the first line of /var/www/avalon/config/environment.rb make sure it says 'development' like so:

Code Block
ENV['RAILS_ENV'] ||= 'development'

Visit your website!

You should be able to visit the webpage with just the hostname. ex: http://localhost (if you want to test from your local machine)

Sign in

Create identity:

archivist1@example.com

password/password

This is a known identity with administrative privileges.

 

Start delayed_job:

As avalon user:

Code Block
cd /var/www/avalon/
bundle exec rake delayed_job:start

Delayed Job handles background jobs.  DelayedJob logs to log/delayed_job.log in the avalon directory. 

Red5 Avalon Security Webapp

Code Block
cd /usr/local/red5/webapps

...


wget https://github.com/avalonmediasystem/config-files/raw/master/red5/red5-avalon.tar.gz

...


tar xvzf red5-avalon.tar.gz

...


chown -R red5:red5 avalon/

edit Edit /usr/local/red5/webapps/avalon/WEB-INF/red5-web.properties:

avalon.serverUrl=http://localhost/

Restart red5sudo /sbin/service red5

Code Block
service red5 restart

If Red5 is installed and running you should be able to access this page.

 

Dropbox

groupadd -r dropbox

useradd -r avalondrop

mkdir -p access this page: http://avalon.dev:5080/

Dropbox

Code Block
groupadd -r dropbox
useradd -r avalondrop
mkdir -p /var/avalon/dropbox

...


chown avalondrop:dropbox /var/avalon/dropbox

...


chmod 2775 /var/avalon/dropbox

 

Add this to /etc/ssh/sshd_config:

Code Block
# override default of no subsystems
Subsystem sftp internal-sftp
 
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# ForceCommand cvs server
Match Group dropbox
ChrootDirectory /var/avalon
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp

/sbin/service sshd Restart SSH

Code Block
service sshd restart

Using the System

You can find specific information about using the system in the Collection Manager's Guide. Upload items individually or via batch. Batch demo content is available for your convenience, which includes the media files and an excel document necessary to run a batch.  You can submit a batch directly via SFTP using the avalondrop account you created above.

...