Author: phD Caterina Giachino Contact: caterina.giachino@unina.it
A step-by-step guide to help beginners learn how to work with Virtual Machines, install Ubuntu Linux, and set up a bioinformatics environment with R, RStudio, and the Biostrings package.
- What is a Virtual Machine?
- Creating the Ubuntu Virtual Machine
- Installing R and RStudio
- Installing Biostrings
- Your Learning Environment
A Virtual Machine (VM) is a software-based computer that runs inside your actual computer.
A VM allows you to:
- Create a safe, isolated environment for experiments
- Install operating systems (e.g., Ubuntu Linux) without modifying your real machine
- Practice programming and bioinformatics
- Reset or delete the environment at any time
In this guide, we will use VMware Workstation 17 Player to create a VM running Ubuntu 22.04. Then we will install R, RStudio, and the Biostrings package for sequence analysis.
Download the ISO image from: 🔗 https://ubuntu.com/download/desktop
Use: ubuntu-22.04.1-desktop-amd64.iso
- Open VMware Workstation 17 Player
- Click Create a New Virtual Machine
- Select the Ubuntu ISO
- Continue with the default settings until resource allocation
Suggested configuration:
- RAM: 4–8 GB
- Processors: 4 cores
- Keyboard layout: Italian
Inside the installer, select:
- Normal installation
- Install third-party software (graphics, Wi-Fi, etc.)
- Disk option → Erase disk and install Ubuntu
- Virtual disk size → ≥ 35 GB
After installation:
- Skip the online account
- Skip feedback
- Skip "Ubuntu Pro"
- Install all system updates
- Switch to Full Screen in VMware Player
Your Ubuntu system is now ready! 🎉
Open the Terminal:
CTRL + ALT + T
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | \
sudo tee /etc/apt/trusted.gpg.d/cran_ubuntu_key.ascsudo apt install lsb-core
sudo apt-get install lsb-release
lsb_release -vsudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/"sudo apt update
sudo apt install --no-install-recommends r-basesudo add-apt-repository ppa:c2d4u.team/c2d4u4.0+
sudo apt updateDownload the .deb file:
🔗 https://posit.co/download/rstudio-desktop/
Install it:
sudo apt install ./rstudio-*.debWe install only Biostrings.
sudo apt-get update
sudo apt-get install r-bioc-biostringsStart R:
if (!require("BiocManager")) install.packages("BiocManager")
BiocManager::install("Biostrings")Only the required dependencies will be installed. ✔
You now have a fully functional virtual environment for:
- Working safely with Linux
- Practicing R and RStudio
- Learning sequence manipulation
- Using Biostrings for DNA/RNA/protein analysis
When I first entered the world of Bioinformatics, I was not yet confident with coding. I was afraid that a wrong command could break my computer — a computer I had bought with my own savings. Using a Virtual Machine completely changed my experience: it allowed me to experiment freely, make mistakes, learn, and explore without fear of damaging anything. I am deeply grateful to my engineering friends, who encouraged me and pushed me to overcome this first difficulty. I hope this setup can help people who, like me, felt overwhelmed at the beginning.
Keep learning, be curious, and don’t be afraid to try things out. This VM is your protected, dedicated workspace for learning bioinformatics.
Have fun, everyone! 🚀