-
Notifications
You must be signed in to change notification settings - Fork 2
7.Dev environment
The goal is to reach a complete development environment including code editors, IDEs and main dev libraries.
ArchLinux Wiki on OpenJDK to get the package name for the latest version of openjdk JDK.
Add to .zshenv
##Add to $PATH
> $HOME/.pyenv
export PYENV_ROOT="$HOME/.pyenv"
Add to .zshrc
eval "$(pyenv init -)"
Add to config.fish
fish_add_path $HOME/.pyenv
##Pyenv
set -Ux PYENV_ROOT $HOME/.pyenv
pyenv init - | source
Important
|
Make sure Pyenv has been installed before, and that the desired environment is sourced. |
cd ~/Downloads
curl -sSL https://install.python-poetry.org | python3 - (1)
-
this python3 should be the pyenv one.
Install the Zsh completions:
mkdir ~/.zfunc
poetry completions zsh > ~/.zfunc/_poetry
Add to .zshrc, before the autoload -Uz compinit && compinit
line
##Add before the autoload -Uz compinit && compinit line
fpath+=~/.zfunc
Install the Fish completions
poetry completions fish > ~/.config/fish/completions/poetry.fish
Reference: Anaconda Linux install guide
Install the pre-requisites :
paru -Sy libxau libxi libxss libxtst libxcursor libxcomposite libxdamage libxfixes libxrandr libxrender mesa-libgl alsa-lib libglvnd
Download anaconda from the site https://www.anaconda.com/products/individual
bash ~/Downloads/Anaconda3-2020.02-Linux-x86_64.sh
-
Accept the install path as /home/<user>/anaconda3
-
Accept conda init (it won’t do much)
-
Configure Anaconda to work with Fish using the script :
/home/jubi/anaconda3/bin/conda init fish
paru -S visual-studio-code-bin
Language | Name | Install command | Description |
---|---|---|---|
General |
Error Lens |
|
Inline display of compiler errors |
Asciidoc |
Asciidoctor |
|
Extension for highlighting and authoring ASCIIDoctor content |
Python |
Python |
|
The Official Python extension |
TOML |
Even-better-toml |
|
A TOML support extension |
Rust |
rust-analyzer |
|
The official Rust extension |
Rust |
Crates |
|
Helper to discover creates versions in Cargo.toml |
Name | Install command | Description |
---|---|---|
Catppuccin |
|
Change the font to JetBrainsMono Nerd Font Mono
Important
|
Ensures VSCode configuration in ~/.config/Code/User/settings.json contains "window.titleBarStyle": "custom" or VSCode will crash upon startup.
|
Make sure code is run with the flags
--enable-features=WaylandWindowDecorations #(1)
--ozone-platform-hint=auto #(2)
--enable-webrtc-pipewire-capturer` #(3)
-
prevents missing top bar issues under wayland
-
generic flag to enable native Wayland
-
enables Obs capture under wayland
-
Edit shell config
-
Add to
$PATH
:/opt/cuda/bin
-
Add to
fish.config
:set -gx LD_LIBRARY_PATH LD_LIBRARY_PATH /opt/cuda/lib64
cd /data/Projects
git clone https://github.com/NVIDIA/cuda-samples.git
cd cuda-samples/Samples/1_Utilities/deviceQuery/
vim Makefile
Edit the path by changing CUDA_PATH=/opt/cuda/
. This is required because the path is hardcoded in the Makefiles, and this is not the path Arch installer uses.
make (1)
./deviceQuery (2)
-
should run with no issues
-
will display data about the installed graphic card CUDA capabilities
You can cleanup the samples
cd /data/Projects
rm -rf cuda-samples
paru –S docker
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
poetry new /data/Projects/your-project
Open the /data/Projects/your-project/pyproject.toml
and change the python version from python = "^3.xx"
to python = "~3.xx"
poetry add pycairo
poetry add manim
Make sure to activate the virtualenv so that all those dependencies are usable.