Oracle Cloud Registration Tutorial: Click here

Some people actually charge for using GitHub's open source projects. Is this fair? ! !

I didn't want to do this at first, but the paid website stimulated me. So after a friendly exchange with ChatGPT, I, who don't know code, have this tutorial, which is definitely a novice nanny level.

The author is lemoex, thanks sir 🙏!

If you want to run GitHub programs on your VPS in the future, you can refer to this.

In addition, although my VPS is Debian, Ubuntu and others should also be applicable.

To use the script from this GitHub project on a Debian VPS, you can follow these steps. You can follow along even if you are not familiar with code:

  1. Install Git: First make sure Git is installed on your VPS so you can clone the code from GitHub. Run the following command:
    sudo apt update sudo apt install git
  2. Clone the GitHub repository: Open the GitHub page and find the URL of the repository (usually there is a "Code" button above the repository homepage, where you can copy the HTTPS link). Then, run the following command on the VPS to download the repository code to your local computer:
    git clone https://github.com/lemoex/oci-help
  3. Enter the project folder: After cloning is complete, enter the downloaded project folder, usually the name of this folder is the warehouse name. For example:
    cd oci-help

    If the location has not been changed, the default location of the script folder is: root/oci-help

  4. Compiling and running the program: The project contains files such asgo.modandmain.goIndicates that it is written in Go. Make sure Go is installed on your VPS. You can install Go by running the following command:
    sudo apt install golang
  5. Compiling Go code: Once in the project directory, run the following commands to compile and build the program:
    go build -o oci-help main.go

    This will create an executable file in the current directoryoci-help.

    However, if your VPS configuration is very low, for example, the memory is only 512M/1G, it may prompt that the process is killed, which means that the compilation failed.

    At this time, you need to increase the swap space for the VPS, which means taking up a portion of the hard disk space (I set it to 1G by default)

    # Create a 1GB swap filesudo fallocate -l 1G /swapfile # Set the permissions of the swap filesudo chmod 600 /swapfile # Set the swap file to swap sudo mkswap /swapfile # Enable the swap filesudo swapon /swapfile # Ensure that the swap file is still valid after reboot echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
  6. Setting up the profile

    Here is an additional tip: for those who don't know Linux, it is recommended to use tools such as finalshell that can see the server files to connect. Mac users can use terminus.

    Look in the project folder, there should be a file:oci-help.ini

    Because the GitHub author has written it in great detail, just follow it.

    However, I found that Oracle's interface has changed during my practice. Therefore, friends who can't find the API setting path can directly search for "API" and then enter.

    Secondly, regarding the configuration of the instance, if you only set up one boot volume, it is best not to set it to 200G, but 199G.

  7. Run the program: make sureoci-help.iniin the project folder. Then, run the program using the following command:
    ./oci-help
  8. Follow the program prompts: According to the prompts, you will be asked to select the account and strength type. Just make your choice based on the content you configured.

After successful operation, it should look like this:

I saw on a forum that someone ran the script for “only” one month to get the configuration right.

All I can say is that time will give the best results.

Well, if you find it useful, please follow it.

Netflix has parking spaces, come quickly~

WeChat: playfulsoulcn


By Loogn sir

An ordinary person who likes to use fun to resist mediocrity; often writes about his own interests; so you will see technology, digital, entertainment, credit cards, Internet... Refuse to be high-sounding and don't be a pseudo-expert; make professional life-like and biochemistry interesting; well, that's it~

Leave a Reply

Your email address will not be published. Required fields are marked *

Share via
Copy link