DEV Community

Mritunjay Tiwari
Mritunjay Tiwari

Posted on

πŸš€ Week 5 of My DevOps Journey: Git, Vagrant & Linux Servers

This week, I explored the foundational tools that make modern DevOps workflows smooth and scalable. From mastering Git for version control to spinning up Linux servers using Vagrant, each tool brought me a step closer to real-world infrastructure automation.

πŸ” What I Learned This Week:

πŸ—‚οΈ Version Control with Git
Learned how to initialize repositories, stage/commit changes, and work with branches. Explored Git logs, diffs, merges, and rebasing to keep history clean and workflows efficient.

πŸ“¦ Vagrant for VM Automation
Understood how Vagrant simplifies virtual machine provisioning. Worked with Vagrantfile, synced folders, and provisioned Linux environments on the fly.

πŸ–₯️ Working with Linux Servers
Practiced logging into servers via SSH, updating packages, managing services, and setting up basic server configurations. Learned the importance of secure remote access and environment consistency.

🧠 Resources That Helped Me:

πŸŽ₯ Course: Decoding DevOps – Git, Vagrant & Linux Servers
πŸ”— https://www.udemy.com/course/decodingdevops/learn/lecture/26460570?start=15#questions

πŸ“˜ Pro Git Book (https://git-scm.com/book/en/v2)

πŸ“Ί Vagrant in 100 Seconds
πŸ”— https://www.youtube.com/watch?v=fg4y0KWlN0M

πŸ› οΈ Tasks Completed:

βœ”οΈ Created and managed multiple Git branches for isolated feature development.
βœ”οΈ Resolved merge conflicts and rebased commits for a cleaner project history.
βœ”οΈ Initialized a Vagrant box with Ubuntu and provisioned it using shell scripts.
βœ”οΈ Accessed virtual servers via SSH and ran system-level commands.
βœ”οΈ Simulated real-world Linux server environments for DevOps practice.

⚠️ Common Errors & Solutions:

❌ Error πŸ’‘ Solution
Permission denied (publickey) while SSH-ing β†’ Add your SSH key or use vagrant ssh directly
Merge conflict on rebase β†’ Use git status, resolve conflicts, then git rebase --continue
"Command not found" inside VM β†’ Update system with sudo apt update and install missing packages
Vagrant up hangs or fails β†’ Check VirtualBox installation and Vagrant plugins

🎯 Biggest Takeaway:

Version control, virtualization, and Linux server management are pillars of DevOps. Learning to wield Git, automate with Vagrant, and navigate servers confidently is empowering β€” like building the foundation of a DevOps lab right on your laptop.

Let’s connect if you’re diving into Git, Linux, or building virtual labs with Vagrant!

DevOps #Git #Vagrant #LinuxServers #InfrastructureAsCode #VersionControl #SSH #Virtualization #Automation #SystemAdministration

Top comments (0)