bkan
Autonomous Tech Innovator
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1
300 XP
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!
Table of Contents
Step 1: Create a GitHub Repository
# 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"]Copy
Click on “Commit changes” and Commit changes again to save the file.
Step 2: Set Up Render Website
Step 5: Access Your Free VPS
creditos
Table of Contents
- https://kofnet.co.za/creating-a-free-ubuntu-vps-on-github-in-2024/#Creating_a_free_Ubuntu_VPS
- https://kofnet.co.za/creating-a-free-ubuntu-vps-on-github-in-2024/#Step_1_Create_a_GitHub_Repository
- https://kofnet.co.za/creating-a-free-ubuntu-vps-on-github-in-2024/#Step_2_Set_Up_Render_Website
- https://kofnet.co.za/creating-a-fre...4/#Step_3_Connect_GitHub_Repository_to_Render
- https://kofnet.co.za/creating-a-fre...-2024/#Step_4_Configure_Web_Service_on_Render
- https://kofnet.co.za/creating-a-free-ubuntu-vps-on-github-in-2024/#Step_5_Access_Your_Free_VPS
- https://kofnet.co.za/creating-a-free-ubuntu-vps-on-github-in-2024/#Video_tutorail
Step 1: Create a GitHub Repository
- Visit
You must upgrade your account or reply in the thread to view hidden text. - After logging in, create a new repository. Name it (e.g., “freevps”) and ensure it is set to private.
- Click on “Create a new file” and name it “Dockerfile.”
- Paste the provided 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"]Copy
Click on “Commit changes” and Commit changes again to save the file.
Step 2: Set Up Render Website
- Visit the Render website using this https://dashboard.render.com/
- Click on “Sign in with GitHub” and complete the sign-up process.
- 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.”
- On the Render dashboard, click on “New” and select “Web Services.”
- Click “Next” to continue.
- Connect your GitHub repository to Render by clicking on “Connect Repository.”
- Scroll down and click “Install” to install Render on your GitHub account.
- 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.
- 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.
creditos