This repository was archived by the owner on Apr 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Scipion image
tranquilinho edited this page May 4, 2016
·
39 revisions
In short, you need the OS (Debian/Ubuntu), the libraries, Scipion itself, and the extra features
Disk space: one wants an image small enough to be manageable, while having space enough for installing everything (excluding user data). Therefore, we recommend a 2 virtual disk setup: the system image (root disk) with 16 GB and the data disk (with enough disk space for all user data)
Note that the data disk will not be always available, so you can not include it in /etc/fstab "as is". See example below.
Example: setup disk /dev/vdc as data
mkfs -t ext4 /dev/vdc # Add it as "not automounted" filesystem at /data /dev/vdc /data ext4 defaults,noauto 0 0 mount /data # "Automount": add next line to crontab @reboot sudo mount /data == Operating system We recommend Debian/Ubuntu, although you may use any Linux. You can start with one of the Ubuntu images available in cloud environments. You can also install your own Ubuntu (for example, when preparing a Virtualbox image) == Libraries See "link:How-to-Install#step3-install[How to install: step 3]" for a list of the packages you will need. === GPU If you foresee that the end user will have access to a GPU when using the image, then you should prepare all the GPU-related stuff. First, NVidia driver. Download the latest stable driver. Disable nouveau (modprobe blacklist). Update init disk ("update-initramfs -u"). Run the binary installer. Then, install CUDA (we recommend version 5.5) The last requisite is OpenCV, which can be installed with scipion install script. The CUDA switch will be enabled later in scipion.conf. == Scipion Proceed with a Scipion installation at /usr/local from GitHub:
cd /usr/local git clone https://github.com/I2PC/scipion.git cd scipion ./scipion config
CUDA = True
/scipion install -j 4
(see link:How-to-Install[How to install]) === EM packages We recommend the preinstallation of the following packages (since they are the most popular among users):
/scipion install -j 4 chimera ctffind4 eman2.12 frealign motioncorr relion-1.4 resmap spider
== Nice extras Usually, the VM is far away from the client computer (typically, in the cloud). Therefore, one needs some solution to enjoy low latency remote graphics display ("remote desktop"). Additionally, is pretty uncommon that the VM has a GPU for rendering. Therefore, one needs some solution to use OpenGL applications (like chimera or boxer) without graphics card ("software rendering") The data disk is available after the image is created. Therefore, one needs some solution that allows the end user to have access to that disk easily. === Remote desktop We recommend Guacamole. On boot, these services must be started: guacamole server (guacd), tomcat, apache, VNC. With link:Portable Services[https://github.com/tranquilinho/ps-scripts], it is very easy: just run service-manager start (add it to /etc/init.d) === Software rendering We recommend MESA. == Snapshots From the working image, you can take a snapshot anytime. In Amazon, these snapshots are the base for creating the final image (AMI) == Publishing Once the image is finished, the user should be able to download it. In cloud scenarios, there are "image repositories". Amazon: register the AMI FedCloud For Virtualbox, just copy the ova file to Scipion web server.