Creating a sandbox on your computer. Only do this on your home computer. Our workstations already have the software installed.
- git clone this repository, create a virtual environment in your home dir and install the required packages
# git clone [email protected]:eddyod/pipeline_utility.git git clone https://github.com/eddyod/pipeline_utility.git sudo python3 -m venv /usr/local/share/pipeline cd pipeline_utility source /usr/local/share/pipeline/bin/activate pip install -r prerequirements.txt pip install -r requirements.txt
- We are currently using Ubuntu 18.04 as of October 2020. Either install this on your local machine or install it as a VM with Virtualbox or VMware. Note, using Ubuntu 20.04 also works, and since our servers will eventually get upgraded to that, you may as well install 20.04
- Create this directory to start with:
sudo mkdir -p /net/birdstore/Active_Atlas_Data/data_root/pipeline_data/DK52/preps/CH1
- Make yourself user:
sudo chown -R $(id -u):$(id -g) /net
- Get some thumbnails to start with
rsync -auv ratto.dk.ucsd.edu:/net/birdstore/Active_Atlas_Data/data_root/pipeline_data/DK52/preps/CH1/thumbnails/ /net/birdstore/Active_Atlas_Data/data_root/pipeline_data/DK52/preps/CH1/thumbnails/
- You can now experiment with some of the thumbnails for DK52
- Clone the repository, use the same virtualenv as above. You might need to install some more packages.
git clone [email protected]:eddyod/ActiveBrainAtlasAdmin.git source /usr/local/share/pipeline/bin/activate
- For complete instructions, look at this page: https://www.digitalocean.com/community/tutorials/how-to-install-mariadb-on-ubuntu-20-04 Step-by-step guide:
- Install and run mysql
sudo apt update sudo apt install mariadb-server sudo mysql_secure_installation sudo mysql -u root -p
- Create a new user and a new database:
CREATE USER 'dklab'@'localhost' IDENTIFIED BY '<your_password_here>'; GRANT ALL ON active_atlas_development.* TO 'dklab'@'localhost'; CREATE DATABASE active_atlas_development;
- Disconnect the database.
- Setup the database user by creating a file:
~/.my.cnf
in your home directory on your local machine:[client] user = dklab password = <your_password_here> port = 3306 host = localhost
- Fetch the database with the last backup from ratto (to current directory), and import it to the database:
last_backup=`ssh ratto ls -1tr /net/birdstore/Active_Atlas_Data/data_root/database/backups/ | tail -1` rsync -auv ratto:/net/birdstore/Active_Atlas_Data/data_root/database/backups/$last_backup ./ gunzip < $last_backup | sed 's/\DEFINER\=`[^`]*`@`[^`]*`//g' | mysql active_atlas_development
- Test by going into the database and running some commands:
In SQL prompt:
mysql active_atlas_development
show tables;
- Here is a list of the software we use on a daily basis
- Visual Code - IDE for python and typescript. This is free and works on most OSs.
- Dbeaver - database GUI tool
- imagemagick - used for converting images.
- matlab - we are just starting to use this. UCSD license is also available
- jupyter notebooks
- Fiji, port of ImageJ
- 3D Slicer
- Gimp - image editing software
- Geeqie - image viewer
- The base directory is located on birdstore at:
/net/birdstore/Active_Atlas_Data/data_root/pipeline_data
- All brains are located in the base directory.
- To view the post tif pipeline process go here: Neuroglancer process
- The directory structure of a 3 channel brain will look like this:
- Annotation keys are viewable in the database: https://activebrainatlas.ucsd.edu/activebrainatlas/admin/neuroglancer/structure/
- The development and production databases are backed up multiple times each day on basalis
- If you need a backup, look on basalis at:
/net/birdstore/Active_Atlas_Data/data_root/database/backups/
- The development database is named
active_atlas_development
- The production database is named
active_atlas_production
- Refer Checking for existing SSH keys and Generating a new SSH key and adding it to the ssh-agent for setting up the SSH on your local machine.
- Substitute hostX and domainname names below with real names
- Appending the following test in the SSH config file
~/.ssh/config
to allow SSH server name aliasing
Host host1
HostName host1.domainname
User <AD_username_here>
Host host2
HostName host2.domainname
User <AD_username_here>
Host host3
HostName host3.domainname
User <AD_username_here>
Then copy the SSH identity to the remote server, enter your AD password when prompted.
for server in host1, host2 host3; do
ssh-copy-id -i $server
done
Now you should be able to SSH into the servers without password.