Setup
1. CH34x USB Driver Setup
Remove brltty
.
sudo apt autoremove brltty
2. Creating .desktop
files for application on Linux
Create a .desktop
files at /home/$USER/.local/share/applications
.
Add following informations:
[Desktop Entry]
Name=<Name>
Comment=<Content>
Exec=<path/to/executable>
Icon=<path/to/icon>
For example, for Arduino IDE:
[Desktop Entry]
Name=Arduino IDE
Comment=Arduino IDE 2.3.2
Exec=/home/sagar/.arduino-ide_2.3.2_Linux_64bit/arduino-ide
Icon=/home/sagar/.arduino-ide_2.3.2_Linux_64bit/resources/app/resources/icons/512x512.png
Terminal=false
Type=Application
Categories=Development
For STM32CubeMX:
[Desktop Entry]
Categories=Development
Comment=STM32CubeMX 6.12.0
Comment[en]=STM32CubeMX-Cube 6.12.0
Encoding=UTF-8
Exec=/home/sagar/STM32CubeMX/STM32CubeMX
Icon=/home/sagar/STM32CubeMX/help/STM32CubeMX.ico
Name=STM32CubeMX
Name[en]=STM32CubeMX
Path=/home/sagar/STM32CubeMX
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=root
StartupWMClass=com-st-microxplorer-maingui-STM32CubeMX
Update desktop database.
update-desktop-database ~/.local/share/applications
Note
Make sure, the executable file has permission for execution. If not, you can change it as:
sudo chmod +x <path/to/executable>
3. STM32CubeProgrammer Setup
Create a symbolic link to your STM32_Programmer_CLI
in ~/.local/bin
.
mkdir -p ~/.local/bin # if does not exist
ln -s ~/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI ~/.local/bin/STM32_Programmer_CLI
4. Git Setup
Set username and email.
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
Set default code editor.
git config --global core.editor "code --wait"
Verify configurations.
git config --list
5. SSH Setup
Generate an SSH key:
ssh-keygen -t ed25519 -C "your_email@example.com"
Press Enter
to save the key to the default location.
Add the SSH key to the agent:
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
See the ssh-key.
cat ~/.ssh/id_ed25519.pub
Add the ssh-key to your github account. Go to Github > Settings > SSH and GPG Keys
. Add new ssh key.