-
Notifications
You must be signed in to change notification settings - Fork 0
Installation guide for Linux users
This guide will help you install the necessary tools, set up SSH keys, and work with a Forgejo repository inside a Dev Container in Visual Studio Code.
Run the following command in your terminal to install Git:
sudo apt update
sudo apt install git -yFollow these steps:
-
Download the
.debpackage of Visual Studio Code from the official website. -
Install it using:
sudo dpkg -i <filename>.deb sudo apt-get install -f
-
Generate an SSH key from your user account (not root):
ssh-keygen -t ed25519 -C "your_email@example.com" -
Press Enter for all prompts to accept defaults.
-
Copy your public key:
cat ~/.ssh/id_ed25519.pub -
Go to the Solaris repo on GitLab and navigate to: Settings > SSH Keys.
-
Paste the copied key and save it.
Run:
ssh -T git@github.com-
Go to your project on GitHub and copy the SSH link of the repository.
-
In the terminal, navigate to the folder where you want to clone the repository:
cd <desired_path>
-
Clone the repository:
git clone --recurse-submodules git@github.com:secureshadow/solaris-software.git
-
You need to configure some files to enable remote debugging on the ESP32S3 board. Create a new file in
~/.sshnamedconfigwith the following content:Host raspi HostName 192.168.XX.YYY User username IdentityFile ~/.ssh/raspberrypi IdentitiesOnly yes -
You also need to configure a file with your credentials: This file must be located at
~/.gitconfig:[user] name = name email = mail [safe] directory = /home/user/Documents/software-solaris
-
You need to create another SSH key inside
~/.sshto connect to the Raspberry Pi:ssh-keygen -t ed25519 -C "your_email@example.com" -f ~/.ssh/raspberry
-
Go to the
jsonfolder inside the cloned project:cd <repository_name>/json
-
Copy the Linux configuration content into the
.devcontainer.jsonfile.
- Open Visual Studio Code.
- Install the Dev Containers extension from the marketplace.
- Open the project in Visual Studio Code.
- Select Reopen in Container from the command palette (
Ctrl+Shift+P). - Verify that your SSH key files have been loaded into the
~/.sshfolder inside the container.