Recently, there is no money for cloud server, so I set up a simple GitLab warehouse. GitHub is really slow, and Gitee can’t do it casually, so I set up a code warehouse

First, download VirtualBox and install it

Official Download Address

Direct installation on the line, there is no loading problem in the process of running, need to enter the BIOS to open the computer’s virtual machine simulation Settings (some computers may not support). Specific operation is searched in baidu a lot of, here said no longer

Second, download GitLab and install it

Bitnami version of Gitlab

After installing VirtualBox, open the.ova file directly in the virtual machine and load our GitLab

VT-X is not available (VERR_VMX_NO_VMX).

Go to the system BIOS to open virtual services, and close the Win10 system Hyper-V: reference operation

After successful startup, see our warehouse running successfully

The first line in yellow in the picture is the address where we access GITLAB

The second line in yellow in the picture is the administrator account and password of GITLAB

The yellow words in the third line of the picture are the official address of Bitnami’s GitLab

The red font is the Linux login account and password in Debian

Step 3: Set up the static network IP

In the Linux system setup of GitLab, the network chooses the bridge mode

1. View the IP information currently assigned to GITLAB

sudo ifconfig

2. Go to the network configuration folder

cd /etc/systemd/network

3. Copy the configuration to the web directory called 25-wired.network

sudo cp 99-dhcp.network 25-wired.network

4. Edit file contents and update relevant information

vim 25-wired.network

If the above command prompts that the file is read-only, modify it with the following command

sudo vim /etc/systemd/network/25-wired.network

Press the key I to insert and change the set parameter value

[Match] Name= interface-name [Network] Address=10.1.10.9/24 Gateway=10.1.10.1 DNS=10.1.10.1

Please refer to your computer for the IP address, gateway and DNS in the above content. After modification, press the ESC button and enter: colon (in English), enter: wq or wq! , then press Enter to end the content modification

Finally, reboot our virtual machine and access our GitLab address to open our own GitLab repository. Take your time