SlideShare a Scribd company logo
11
Most read
22
Most read
23
Most read
AtoM and VagrantINSTALLING AND CONFIGURING THE ATOM VAGRANT BOX
FOR LOCAL TESTING AND DEVELOPMENT
What is Vagrant?
Vagrant is a tool for building complete
development environments. With an
easy-to-use workflow and focus on
automation, Vagrant lowers development
environment setup time, increases
development / production parity, and
makes the "works on my machine" excuse
a relic of the past.
Vagrant was started in January 2010 by
Mitchell Hashimoto.
https://www.vagrantup.com/about.html
Vagrant remains and always will be a liberally licensed open
source project. Each release of Vagrant is the work of hundreds
of individuals' contributions to the open source project.
What is VirtualBox?
VirtualBox is an open source, cross-platform
virtualization application.
When we describe VirtualBox as a "virtualization" product, we
refer to "full virtualization", that is, the particular kind of
virtualization that allows an unmodified operating system with
all of its installed software to run in a special environment, on
top of your existing operating system. This environment, called
a "virtual machine", is created by the virtualization software by
intercepting access to certain hardware components and
certain features. The physical computer is then usually called
the "host", while the virtual machine is often called a "guest".
Most of the guest code runs unmodified, directly on the host
computer, and the guest operating system "thinks" it's running
on a real machine.
https://www.virtualbox.org/wiki/Virtualization
The AtoM Vagrant Box
AtoM and all of its
dependencies….
Are packaged as a
Vagrant box…
Which is run by VirtualBox
as a virtual machine…
And accessed via SSH
and/or a web browser.
Installing the Atom Vagrant Box
Step 1: Download and Install VirtualBox
• https://www.virtualbox.org/
Step 2: Download and Install Vagrant
• https://www.vagrantup.com/
Installing the Atom Vagrant Box
Step 3: open your command line interface
Applications/Utilities/Terminal
Search for “cmd” and hit enter
CTRL + ALT + T
Installing the Atom Vagrant Box
Step 4: make a new directory on your desktop
and then change directories into it
> cd Desktop
> mkdir vagrant-2.4
> cd vagrant-2.4
> cd Desktop
> mkdir vagrant-2.4
> cd vagrant-2.4
> cd ~/Desktop
> mkdir vagrant-2.4
> cd vagrant-2.4
Installing the Atom Vagrant Box
Step 5: Initialize the directory to be a Vagrant
environment
> vagrant init artefactual/atom
Step 6: Run Vagrant!
> vagrant up
And Now an Intermission for our Windows Users…
(Mac and Linux users, feel free
to skip ahead a couple slides)
http://wgnradio.com/2013/01/29/lets-all-go-to-the-lobby/comment-page-1/
SSH, Vagrant, and Windows
What is SSH?
SSH stands for Secure SHell. It is a secure way of
connecting to a remote computer or server using
encryption to protect the connection.
To connect to the guest O/S (the Vagrant box –
the virtual machine you are running) from the
Host (your computer), we use SSH.
Linux and Mac support an SSH client natively, but
Windows does not – so we need to install an SSH
client to access the AtoM Vagrant box’s
command-line interface.
Our preferred Windows SSH client is PuTTY.
Step A: Download and Install PuTTY
• http://www.putty.org/
• Follow the link to the Downloads page
SSH, Vagrant, and Windows
Step B: Launch PuTTY and Configure it for Vagrant access
• Host Name: 10.10.10.10
• Port: 22
In the “Saved Sessions” field, give
this configuration a name so you
can reuse it (e.g. AtoM Vagrant Box),
then click “Save.”
SSH, Vagrant, and Windows
Step B: Launch PuTTY and Configure it for Vagrant access
In the options on the side, click
“Translation” under the Window heading.
Select UTF-8 as the Remote character set.
In the menu, click the top link, “Session”,
to return to the main page. Remember to
click “Save” to preserve these settings.
SSH, Vagrant, and Windows
Step C: Launch the PuTTY SSH terminal!
On the main PuTTY page, click on your
saved Vagrant settings and then click the
“Open” button
PuTTY will open a terminal so you can
connect to the Vagrant box
REMEMBER: you must already have run
“vagrant up” via the Windows command-line
interface for the connection to work.
SSH, Vagrant, and Mac/Linux
To access the Vagrant box, enter the following command:
REMEMBER: you must already have run
“vagrant up” for the connection to work.
> vagrant ssh
If You Are Prompted for a Password
Both the username and the
password for the AtoM vagrant
box are: vagrant
• Username: vagrant
• Password: vagrant
Now you’re almost ready to start using AtoM!
Open Your Web Browser
Enter the following
address to access
your local AtoM site:
10.10.10.10
Log in credentials:
• User: demo@example.com
• Pass: demo
Part 2: Updating the Vagrant Box with the Latest Atom Code
Because the AtoM Vagrant box is targeted in part to developers, it
follows our latest development branch. Currently (March 2017), that
is the qa/2.4.x development branch in our GitHub code repository.
The AtoM Vagrant box will not automatically keep up to date with
the latest AtoM development – meaning all the newest features and
bug fixes are not currently included! We strongly recommend you
update your Vagrant box before using it.
We’ll do this by running some commands in our Vagrant terminal.
The AtoM public code repository on GitHub
Read more about the AtoM code repository on our wiki:
• https://wiki.accesstomemory.org/Resources/Code_repository
See our public code repository on GitHub:
• https://github.com/artefactual/atom/
Updating the Vagrant Box with the Latest Atom Code
Step 1: Navigate to the atom directory from the root vagrant directory
> cd atom
Step 2: Pull in the latest AtoM code
> git pull --rebase
Updating the Vagrant Box with the Latest Atom Code
Step 3: Purge the current database and run the SQL upgrade task
> php symfony tools:purge --demo
> php symfony tools:upgrade-sql
WHY?
There have been changes to the database since the 2.3 release. The first task will purge the
current database and then re-add the demo user (so you can log into the user interface),
and the second task will run a task to upgrade the MySQL database to the latest schema
version.
Updating the Vagrant Box with the Latest Atom Code
Step 3: Clear the application cache and restart all services
Clear the application cache: > php symfony cc
Restart the webserver (NGINX): > sudo systemctl reload nginx
Restart PHP-FPM: > sudo systemctl restart php7.0-fpm
Restart the memory caching engine (memcached): > sudo systemctl memcached restart
Updating the Vagrant Box with the Latest Atom Code
Step 4: Rebuild the theme and repopulate the search index
Rebuild the base (Dominion) theme CSS: > make –C plugins/arDominionPlugin
Repopulate the search index: > php symfony search:populate
Congratulations! Your AtoM
Vagrant box should now be
up to date!
“Don't make me laugh..!!!” by DigiTaL~NomAd
https://www.flickr.com/photos/urban-spaceman/3682523624
Shutting Down Vagrant
close the PuTTY terminal
In your Windows terminal, enter:
> vagrant halt
Exit the SSH session: > exit
Shut down Vagrant: > vagrant halt
Wait until the command prompt returns, indicating that
the box has successfully shut down. You’re done! Now
you can close the terminal.
Using Vagrant Next Time
Now that all the dependencies are installed and the box has been updated:
> cd Desktop/vagrant-2.4
> vagrant up
Open PuTTY and launch your
saved AtoM Vagrant box settings
> cd Desktop/vagrant-2.4
> vagrant up
> vagrant ssh
> cd ~/Desktop/vagrant-2.4
> vagrant up
> vagrant ssh
Vagrant box Credentials:
• Username: vagrant
• Password: vagrant
Open AtoM in your Browser – URL: http://10.10.10.10
• Username: demo@example.com
• Password: demo
Further Resources
AtoM Vagrant documentation:
• https://www.accesstomemory.org/docs/latest/dev-manual/env/vagrant/
AtoM Command-Line Tutorial Videos
• https://www.youtube.com/playlist?list=PLZiwlG5eSMeyeETe15EsEBSu5htPLK-wm

More Related Content

What's hot (20)

PPTX
Digital Preservation with Archivematica: An Introduction
Artefactual Systems - Archivematica
 
PDF
AtoM feature development
Artefactual Systems - AtoM
 
PPTX
Digital Preservation with Archivematica
Artefactual Systems - Archivematica
 
PPTX
AtoM Data Migrations
Artefactual Systems - AtoM
 
PPTX
ELK Stack
Phuc Nguyen
 
PPT
Html JavaScript and CSS
Radhe Krishna Rajan
 
PPTX
Searching in AtoM
Artefactual Systems - AtoM
 
PPTX
Bootstrap 4 ppt
EPAM Systems
 
PPTX
Kibana overview
Rinat Tainov
 
PPTX
Elastic search overview
ABC Talks
 
PDF
Introduction to elasticsearch
pmanvi
 
PPTX
Security and Data Governance using Apache Ranger and Apache Atlas
DataWorks Summit/Hadoop Summit
 
PPTX
Microservice vs. Monolithic Architecture
Paul Mooney
 
ODP
Introduction to Apache solr
Knoldus Inc.
 
PDF
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Bootstrap Creative
 
PPTX
Containerization
Gowtham Ventrapati
 
ODP
Elasticsearch for beginners
Neil Baker
 
PDF
Cloud native defined
Kim Clark
 
PPT
Introduction to Basic Concepts in Web
Jussi Pohjolainen
 
PPT
Presentation on html, css
Aamir Sohail
 
Digital Preservation with Archivematica: An Introduction
Artefactual Systems - Archivematica
 
AtoM feature development
Artefactual Systems - AtoM
 
Digital Preservation with Archivematica
Artefactual Systems - Archivematica
 
AtoM Data Migrations
Artefactual Systems - AtoM
 
ELK Stack
Phuc Nguyen
 
Html JavaScript and CSS
Radhe Krishna Rajan
 
Searching in AtoM
Artefactual Systems - AtoM
 
Bootstrap 4 ppt
EPAM Systems
 
Kibana overview
Rinat Tainov
 
Elastic search overview
ABC Talks
 
Introduction to elasticsearch
pmanvi
 
Security and Data Governance using Apache Ranger and Apache Atlas
DataWorks Summit/Hadoop Summit
 
Microservice vs. Monolithic Architecture
Paul Mooney
 
Introduction to Apache solr
Knoldus Inc.
 
Bootstrap 4 Tutorial PDF for Beginners - Learn Step by Step
Bootstrap Creative
 
Containerization
Gowtham Ventrapati
 
Elasticsearch for beginners
Neil Baker
 
Cloud native defined
Kim Clark
 
Introduction to Basic Concepts in Web
Jussi Pohjolainen
 
Presentation on html, css
Aamir Sohail
 

Viewers also liked (20)

PPTX
AtoM, Authenticity, and the Chain of Custody
Artefactual Systems - AtoM
 
PDF
National Archives of Norway - AtoM and Archivematica intro workshop
Artefactual Systems - AtoM
 
PPTX
Artefactual and Open Source Development
Artefactual Systems - AtoM
 
PPTX
Technologie Proche: Imagining the Archival Systems of Tomorrow With the Tools...
Artefactual Systems - AtoM
 
PPTX
Project Documentation with Sphinx (or, How I Learned to Stop Worrying and Lov...
Artefactual Systems - AtoM
 
PDF
ReST Editor - Eclipse Demo Camp Grenoble 2011
tcalmant
 
PDF
The Spock Guide to Think Out of The Vagrant Box
Errazudin Ishak
 
PPTX
Introducing the Digital Repository for Museum Collections (DRMC)
Artefactual Systems - AtoM
 
PDF
A difícil tarefa de manter a Cadeia de Custódia Digital dos Documentos Arquiv...
Daniel Flores
 
PPTX
AtoM Community Update 2016
Artefactual Systems - AtoM
 
PDF
Hierarchical DIP upload from Archivematica to AtoM
Artefactual Systems - Archivematica
 
ODP
Fabric: A Capistrano Alternative
Panoptic Development, Inc.
 
PPTX
Vagrant-Overview
Crifkin
 
PPTX
Introducing Binder: A Web-based, Open Source Digital Preservation Management ...
Artefactual Systems - AtoM
 
PDF
Automate with Ansible basic (3/e)
Chu-Siang Lai
 
PDF
Webinar "Alfresco en une heure"
Michael Harlaut
 
PDF
Introduction to Vagrant
Marcelo Pinheiro
 
PDF
Infrastructure Deployment with Docker & Ansible
Robert Reiz
 
PDF
CollectiveAccess : Tutoriel
Antonin Benoît DIOUF
 
PDF
Logiciel archivistique ICA-AtoM
Antonin Benoît DIOUF
 
AtoM, Authenticity, and the Chain of Custody
Artefactual Systems - AtoM
 
National Archives of Norway - AtoM and Archivematica intro workshop
Artefactual Systems - AtoM
 
Artefactual and Open Source Development
Artefactual Systems - AtoM
 
Technologie Proche: Imagining the Archival Systems of Tomorrow With the Tools...
Artefactual Systems - AtoM
 
Project Documentation with Sphinx (or, How I Learned to Stop Worrying and Lov...
Artefactual Systems - AtoM
 
ReST Editor - Eclipse Demo Camp Grenoble 2011
tcalmant
 
The Spock Guide to Think Out of The Vagrant Box
Errazudin Ishak
 
Introducing the Digital Repository for Museum Collections (DRMC)
Artefactual Systems - AtoM
 
A difícil tarefa de manter a Cadeia de Custódia Digital dos Documentos Arquiv...
Daniel Flores
 
AtoM Community Update 2016
Artefactual Systems - AtoM
 
Hierarchical DIP upload from Archivematica to AtoM
Artefactual Systems - Archivematica
 
Fabric: A Capistrano Alternative
Panoptic Development, Inc.
 
Vagrant-Overview
Crifkin
 
Introducing Binder: A Web-based, Open Source Digital Preservation Management ...
Artefactual Systems - AtoM
 
Automate with Ansible basic (3/e)
Chu-Siang Lai
 
Webinar "Alfresco en une heure"
Michael Harlaut
 
Introduction to Vagrant
Marcelo Pinheiro
 
Infrastructure Deployment with Docker & Ansible
Robert Reiz
 
CollectiveAccess : Tutoriel
Antonin Benoît DIOUF
 
Logiciel archivistique ICA-AtoM
Antonin Benoît DIOUF
 
Ad

Similar to AtoM and Vagrant: Installing and Configuring the AtoM Vagrant Box for Local Testing and Development (20)

PPTX
Creating your own AtoM demo data set for re-use with Vagrant
Artefactual Systems - AtoM
 
PDF
Vagrant for local and team WordPress Development
Anthony Alvarez
 
PDF
Making Developers Productive with Vagrant, VirtualBox, and Docker
John Rofrano
 
PDF
Vagrant workshop 2015
Haifa Ftirich
 
PPTX
DevOps Hackathon - Session 1: Vagrant
Antons Kranga
 
ODP
It Works On My Machine: Vagrant for Software Development
Carlos Perez
 
PDF
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
Felipe
 
PDF
Vagrant For DevOps
Lalatendu Mohanty
 
PDF
Create Development and Production Environments with Vagrant
Brian Hogan
 
PPTX
Development with Vagrant
John Coggeshall
 
PPTX
Vagrant step-by-step guide for Beginners
Sagar Acharya
 
KEY
Vagrant
Michael Peacock
 
PDF
Take Home Your Very Own Free Vagrant CFML Dev Environment
ColdFusionConference
 
PDF
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Gavin Pickin
 
PDF
Improved development workflows using vagrant
Makis Asimidis
 
PDF
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
Anthony Alvarez
 
PDF
ITB2015 - Winning with Vagrant, Puppet and Chef
Ortus Solutions, Corp
 
PDF
Keep calm and vagrant up
Daniel Carvalhinho
 
PPTX
Vagrant
Evans Ye
 
PDF
Quick & Easy Dev Environments with Vagrant
Joe Ferguson
 
Creating your own AtoM demo data set for re-use with Vagrant
Artefactual Systems - AtoM
 
Vagrant for local and team WordPress Development
Anthony Alvarez
 
Making Developers Productive with Vagrant, VirtualBox, and Docker
John Rofrano
 
Vagrant workshop 2015
Haifa Ftirich
 
DevOps Hackathon - Session 1: Vagrant
Antons Kranga
 
It Works On My Machine: Vagrant for Software Development
Carlos Perez
 
DevOps Series: Defining and Sharing Testable Machine Configurations with vagrant
Felipe
 
Vagrant For DevOps
Lalatendu Mohanty
 
Create Development and Production Environments with Vagrant
Brian Hogan
 
Development with Vagrant
John Coggeshall
 
Vagrant step-by-step guide for Beginners
Sagar Acharya
 
Take Home Your Very Own Free Vagrant CFML Dev Environment
ColdFusionConference
 
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Gavin Pickin
 
Improved development workflows using vagrant
Makis Asimidis
 
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
Anthony Alvarez
 
ITB2015 - Winning with Vagrant, Puppet and Chef
Ortus Solutions, Corp
 
Keep calm and vagrant up
Daniel Carvalhinho
 
Vagrant
Evans Ye
 
Quick & Easy Dev Environments with Vagrant
Joe Ferguson
 
Ad

More from Artefactual Systems - AtoM (10)

PDF
Artefactual AtoM Priorities November 2024
Artefactual Systems - AtoM
 
PDF
AtoM Community Update: 2019-05
Artefactual Systems - AtoM
 
PPTX
Building the Future Together: AtoM3, Governance, and the Sustainability of Op...
Artefactual Systems - AtoM
 
PPTX
Looking Ahead: AtoM's governance, development, and future
Artefactual Systems - AtoM
 
PPTX
Contributing to the AtoM documentation
Artefactual Systems - AtoM
 
PDF
Installing AtoM with Ansible
Artefactual Systems - AtoM
 
PDF
Constructing SQL queries for AtoM
Artefactual Systems - AtoM
 
PDF
Installing and Upgrading AtoM
Artefactual Systems - AtoM
 
PPTX
Command-Line 101
Artefactual Systems - AtoM
 
PPTX
Digital Curation using Archivematica and AtoM: DLF Forum 2015
Artefactual Systems - AtoM
 
Artefactual AtoM Priorities November 2024
Artefactual Systems - AtoM
 
AtoM Community Update: 2019-05
Artefactual Systems - AtoM
 
Building the Future Together: AtoM3, Governance, and the Sustainability of Op...
Artefactual Systems - AtoM
 
Looking Ahead: AtoM's governance, development, and future
Artefactual Systems - AtoM
 
Contributing to the AtoM documentation
Artefactual Systems - AtoM
 
Installing AtoM with Ansible
Artefactual Systems - AtoM
 
Constructing SQL queries for AtoM
Artefactual Systems - AtoM
 
Installing and Upgrading AtoM
Artefactual Systems - AtoM
 
Command-Line 101
Artefactual Systems - AtoM
 
Digital Curation using Archivematica and AtoM: DLF Forum 2015
Artefactual Systems - AtoM
 

Recently uploaded (20)

PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Python basic programing language for automation
DanialHabibi2
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
July Patch Tuesday
Ivanti
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Python basic programing language for automation
DanialHabibi2
 

AtoM and Vagrant: Installing and Configuring the AtoM Vagrant Box for Local Testing and Development

  • 1. AtoM and VagrantINSTALLING AND CONFIGURING THE ATOM VAGRANT BOX FOR LOCAL TESTING AND DEVELOPMENT
  • 2. What is Vagrant? Vagrant is a tool for building complete development environments. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases development / production parity, and makes the "works on my machine" excuse a relic of the past. Vagrant was started in January 2010 by Mitchell Hashimoto. https://www.vagrantup.com/about.html Vagrant remains and always will be a liberally licensed open source project. Each release of Vagrant is the work of hundreds of individuals' contributions to the open source project.
  • 3. What is VirtualBox? VirtualBox is an open source, cross-platform virtualization application. When we describe VirtualBox as a "virtualization" product, we refer to "full virtualization", that is, the particular kind of virtualization that allows an unmodified operating system with all of its installed software to run in a special environment, on top of your existing operating system. This environment, called a "virtual machine", is created by the virtualization software by intercepting access to certain hardware components and certain features. The physical computer is then usually called the "host", while the virtual machine is often called a "guest". Most of the guest code runs unmodified, directly on the host computer, and the guest operating system "thinks" it's running on a real machine. https://www.virtualbox.org/wiki/Virtualization
  • 4. The AtoM Vagrant Box AtoM and all of its dependencies…. Are packaged as a Vagrant box… Which is run by VirtualBox as a virtual machine… And accessed via SSH and/or a web browser.
  • 5. Installing the Atom Vagrant Box Step 1: Download and Install VirtualBox • https://www.virtualbox.org/ Step 2: Download and Install Vagrant • https://www.vagrantup.com/
  • 6. Installing the Atom Vagrant Box Step 3: open your command line interface Applications/Utilities/Terminal Search for “cmd” and hit enter CTRL + ALT + T
  • 7. Installing the Atom Vagrant Box Step 4: make a new directory on your desktop and then change directories into it > cd Desktop > mkdir vagrant-2.4 > cd vagrant-2.4 > cd Desktop > mkdir vagrant-2.4 > cd vagrant-2.4 > cd ~/Desktop > mkdir vagrant-2.4 > cd vagrant-2.4
  • 8. Installing the Atom Vagrant Box Step 5: Initialize the directory to be a Vagrant environment > vagrant init artefactual/atom Step 6: Run Vagrant! > vagrant up
  • 9. And Now an Intermission for our Windows Users… (Mac and Linux users, feel free to skip ahead a couple slides) http://wgnradio.com/2013/01/29/lets-all-go-to-the-lobby/comment-page-1/
  • 10. SSH, Vagrant, and Windows What is SSH? SSH stands for Secure SHell. It is a secure way of connecting to a remote computer or server using encryption to protect the connection. To connect to the guest O/S (the Vagrant box – the virtual machine you are running) from the Host (your computer), we use SSH. Linux and Mac support an SSH client natively, but Windows does not – so we need to install an SSH client to access the AtoM Vagrant box’s command-line interface. Our preferred Windows SSH client is PuTTY. Step A: Download and Install PuTTY • http://www.putty.org/ • Follow the link to the Downloads page
  • 11. SSH, Vagrant, and Windows Step B: Launch PuTTY and Configure it for Vagrant access • Host Name: 10.10.10.10 • Port: 22 In the “Saved Sessions” field, give this configuration a name so you can reuse it (e.g. AtoM Vagrant Box), then click “Save.”
  • 12. SSH, Vagrant, and Windows Step B: Launch PuTTY and Configure it for Vagrant access In the options on the side, click “Translation” under the Window heading. Select UTF-8 as the Remote character set. In the menu, click the top link, “Session”, to return to the main page. Remember to click “Save” to preserve these settings.
  • 13. SSH, Vagrant, and Windows Step C: Launch the PuTTY SSH terminal! On the main PuTTY page, click on your saved Vagrant settings and then click the “Open” button PuTTY will open a terminal so you can connect to the Vagrant box REMEMBER: you must already have run “vagrant up” via the Windows command-line interface for the connection to work.
  • 14. SSH, Vagrant, and Mac/Linux To access the Vagrant box, enter the following command: REMEMBER: you must already have run “vagrant up” for the connection to work. > vagrant ssh
  • 15. If You Are Prompted for a Password Both the username and the password for the AtoM vagrant box are: vagrant • Username: vagrant • Password: vagrant Now you’re almost ready to start using AtoM!
  • 16. Open Your Web Browser Enter the following address to access your local AtoM site: 10.10.10.10 Log in credentials: • User: [email protected] • Pass: demo
  • 17. Part 2: Updating the Vagrant Box with the Latest Atom Code Because the AtoM Vagrant box is targeted in part to developers, it follows our latest development branch. Currently (March 2017), that is the qa/2.4.x development branch in our GitHub code repository. The AtoM Vagrant box will not automatically keep up to date with the latest AtoM development – meaning all the newest features and bug fixes are not currently included! We strongly recommend you update your Vagrant box before using it. We’ll do this by running some commands in our Vagrant terminal. The AtoM public code repository on GitHub Read more about the AtoM code repository on our wiki: • https://wiki.accesstomemory.org/Resources/Code_repository See our public code repository on GitHub: • https://github.com/artefactual/atom/
  • 18. Updating the Vagrant Box with the Latest Atom Code Step 1: Navigate to the atom directory from the root vagrant directory > cd atom Step 2: Pull in the latest AtoM code > git pull --rebase
  • 19. Updating the Vagrant Box with the Latest Atom Code Step 3: Purge the current database and run the SQL upgrade task > php symfony tools:purge --demo > php symfony tools:upgrade-sql WHY? There have been changes to the database since the 2.3 release. The first task will purge the current database and then re-add the demo user (so you can log into the user interface), and the second task will run a task to upgrade the MySQL database to the latest schema version.
  • 20. Updating the Vagrant Box with the Latest Atom Code Step 3: Clear the application cache and restart all services Clear the application cache: > php symfony cc Restart the webserver (NGINX): > sudo systemctl reload nginx Restart PHP-FPM: > sudo systemctl restart php7.0-fpm Restart the memory caching engine (memcached): > sudo systemctl memcached restart
  • 21. Updating the Vagrant Box with the Latest Atom Code Step 4: Rebuild the theme and repopulate the search index Rebuild the base (Dominion) theme CSS: > make –C plugins/arDominionPlugin Repopulate the search index: > php symfony search:populate Congratulations! Your AtoM Vagrant box should now be up to date! “Don't make me laugh..!!!” by DigiTaL~NomAd https://www.flickr.com/photos/urban-spaceman/3682523624
  • 22. Shutting Down Vagrant close the PuTTY terminal In your Windows terminal, enter: > vagrant halt Exit the SSH session: > exit Shut down Vagrant: > vagrant halt Wait until the command prompt returns, indicating that the box has successfully shut down. You’re done! Now you can close the terminal.
  • 23. Using Vagrant Next Time Now that all the dependencies are installed and the box has been updated: > cd Desktop/vagrant-2.4 > vagrant up Open PuTTY and launch your saved AtoM Vagrant box settings > cd Desktop/vagrant-2.4 > vagrant up > vagrant ssh > cd ~/Desktop/vagrant-2.4 > vagrant up > vagrant ssh Vagrant box Credentials: • Username: vagrant • Password: vagrant Open AtoM in your Browser – URL: http://10.10.10.10 • Username: [email protected] • Password: demo
  • 24. Further Resources AtoM Vagrant documentation: • https://www.accesstomemory.org/docs/latest/dev-manual/env/vagrant/ AtoM Command-Line Tutorial Videos • https://www.youtube.com/playlist?list=PLZiwlG5eSMeyeETe15EsEBSu5htPLK-wm