Free Ubuntu VPS

Creating a Free Ubuntu VPS on Github Step-by-Step Tutorial in 2024

In today’s tutorial, we will guide you through the process of creating a free Ubuntu VPS on GitHub. Before we begin, please note that this tutorial is for educational purposes only, and we will not be held responsible for any issues that may arise. Now, let’s get started!

Step 1: Create a GitHub Repository

  •  Visit Github.com and create an account if you don’t have one. If you already have an account, log in. 
  • After logging in, create a new repository. Name it (e.g., “freevps”) and ensure it is set to private. 
Free Ubuntu VPS
Free Ubuntu VPS
  • Click on “Create a new file” and name it “Dockerfile.”
  • Paste the provided script
Script
# Use a base image that supports systemd, for example, Ubuntu
FROM ubuntu:20.04

# Install necessary packages
RUN apt-get update && \
apt-get install -y shellinabox && \
apt-get install -y systemd && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN echo 'root:root' | chpasswd
# Expose the web-based terminal port
EXPOSE 4200

# Start shellinabox
CMD ["/usr/bin/shellinaboxd", "-t", "-s", "/:LOGIN"]

Click on “Commit changes” and Commit changes again to save the file.

Step 2: Set Up Render Website

  • Visit the Render website using this link.
  • Click on “Sign in with GitHub” and complete the sign-up process.
Free Ubuntu VPS
Free Ubuntu VPS
  • Check your Gmail inbox for the verification email from Render, click the link, and go back to the Render website. 
  • Fill in the required information and click on “Continue to Render.”

Step 3: Connect GitHub Repository to Render

  • On the Render dashboard, click on “New” and select “Web Services.”
  • Click “Next” to continue.
Free Ubuntu VPS
  • Connect your GitHub repository to Render by clicking on “Connect Repository.”
  • Scroll down and click “Install” to install Render on your GitHub account.
Free Ubuntu VPS
Free Ubuntu VPS

Step 4: Configure Web Service on Render

  • See all your GitHub repositories on Render and click on “Connect” for the newly created repository. 
  • Give your web service a name (e.g., “freevps”) and choose the region.
Free Ubuntu VPS
Free Ubuntu VPS
  • Click “Create Web Service” and wait for about a few minutes for your VPS to complete deploying.

Step 5: Access Your Free VPS

  • When your service is live, click on the provided link. 
  • For the login, use “root” as both the username and password.

Video tutorail

Conclusion:

Congratulations! You have successfully created your free Ubuntu VPS. If you found this guide helpful, please consider giving it a thumbs up. Feel free to share any questions or suggestions in the comments below. Don’t forget to subscribe to our channel for more informative videos. Until next time, take care.