Pre-requisites, a VM like the one create in Creating and Configuring VMs
In this exercise we will run some commands to run RStudio in docker and check the results.
Install Docker CE on your VM
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce
Enable and Start Docker CE on your VM
sudo systemctl enable --now docker
Test if Docker CE was successfully started on your VM
sudo docker run hello-world
Run Rstudio docker container
sudo docker container run --rm -p 80:8787 -d -v ${PWD}:/home/rstudio -w /home/rstudio dceoy/rstudio-server
Alternative image location:
quay.io/lvarin/rstudio-server
rstudio
, and password: rstudio
.Stop Rstudio server
sudo docker stop $(sudo docker ps -q)
Pre-requisites, a VM like the one create in Creating and Configuring VMs
In this exercise we will run some commands to build RStudio and check the results.
Update the VM
sudo yum update
Download Rstudio rpm installation package
wget https://download2.rstudio.org/rstudio-server-rhel-1.1.456-x86_64.rpm
Install rstudio
sudo yum localinstall rstudio-server-rhel-1.1.456-x86_64.rpm -y
sudo yum install R -y
sudo rstudio-server verify-installation
Add a new user account to your system
sudo useradd rstudio
sudo passwd rstudio
Access Rstudio server
rstudio
, and the password you provided in the previous step.Pre-requisites, a VM like the one create in Creating and Configuring VMs
Install bzip2 compression tool
sudo yum update
sudo yum install bzip2
Download and install Conda into the VM
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
source .bashrc
Add the software channels
conda config --add channels defaults
conda config --add channels conda-forge
conda config --add channels bioconda
Use Conda to install software
conda install bwa
Create a new environment
conda create -n bwa_env bwa
conda info --envs
source activate my_env
In this exercise we will install a MySQL server. In the HPC world is common to need a database to coordinate the analysis and store the results.
Launch a Virtual machine
Install the database
sudo apt update
sudo apt install mysql-server mysql-client -y
Configure MySQL users
sudo mysql_secure_installation
sudo mysql -e "CREATE USER 'dbuser'@'%' IDENTIFIED WITH mysql_native_password BY 'fakePassword12345';"
Open MySQL to the internet
Use a security group to open the port (3306
)
In /etc/mysql/mysql.conf.d/mysqld.cnf
, change the line bind-address = 127.0.0.1
into bind-address = 0.0.0.0
. This makes MySQL to listen to any IP and not only the localhost (127.0.0.1
). Then restart the MySQL Service.
When connecting, MySQL will ask for the password that was created earlier.
mysql -u dbuser -p -h **virtual-ip**