Thursday, May 29, 2025

Bluefin + Blue Build Custom Atomic


 

 

Dev environment: https://docs.projectbluefin.io/bluefin-dx 

Terminal setup: https://docs.projectbluefin.io/command-line/

Rebasing: https://docs.projectbluefin.io/administration/

 

Custom Images:   

images for NVIDIA and non-NVIDIA at: https://github.com/whelanh/myBluefin

 

OneDrive: 

brew install onedrive
# type onedrive to register/connect with your MSft OneDrive account 
brew services start onedrive 


Tailscale:
 
brew install tailscale
tailscale up --ssh # flag permits ssh access
tailscale ssh <
tailscale node name>

 

Kmymoney: need prefix to disable video acceleration: 

QMLSCENE_DEVICE=softwarecontext QT_OPENGL=software kmymoney (last could be flatpak run org.kde.mymoney)


 

Toolbox (good pattern: use to compile Stockfish...but can now do in custom image):

toolbox create
toolbox enter
sudo dnf groupinstall "Development Tools" 
sudo dnf in gcc-c++ 

Cron Replacement: https://fedoramagazine.org/systemd-timers-for-scheduling-tasks/ 

systemctl --user stop schedule-test.timer 
systemctl --user disable schedule-test.timer 
systemctl --user stop schedule-test.service 
systemctl --user disable schedule-test.service 
systemctl --user daemon-reload 
systemctl --user reset-failed


systemctl --user enable schedule-test.service
systemctl --user enable schedule-stockfish.service 
 
systemctl --user enable schedule-test.timer
systemctl --user enable schedule-test-two.timer
systemctl --user enable schedule-stockfish.timer

systemctl --user start schedule-test.timer
systemctl --user start schedule-test-two.timer
systemctl --user start schedule-stockfish.timer

systemctl --user status schedule-test 

systemctl --user list-unit-files

Pycharm:

Download the Jetbrains toolbox: JetBrains Toolbox App: Manage Your Tools with Ease (already installed with Bluefin-dx....just run it)

Untar it and run the command, that will install a helper app for you that will let you install PyCharm. It will also download and configure all the python things you need via virtual environments, or conda, etc. There’s no need to mess with system stuff for this, the pycharm toolbox keeps everything in your home directory so it’s nice and neat.

Rebase:
rpm-ostree rebase ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:stable-daily

rpm-ostree rebase ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx-nvidia-open:stable-daily

 

To update all distrobox apps:
distrobox upgrade --all

Rstudio (now part of my custom image):
create a distrobox environment as above, enter it, and then:

sudo dnf copr enable iucar/rstudio # enables this repo 
sudo dnf install R rstudio-desktop # for RStudio Desktop
 

Chezmoi (for managing dotfiles): 


Compile program and create desktop icon:
# Clone the repository
git clone https://github.com/your-repo/your-project.git
cd your-project

# Create a distrobox (e.g., Fedora)
distrobox create -n fedora-dev -i fedora:latest

# Enter the distrobox
distrobox enter fedora-dev

# Install dependencies (inside the distrobox)
sudo dnf install gcc make gcc-c++

# Compile the code (inside the distrobox)
make

# Run the program (inside the distrobox)
./your-program
 
Create Desktop file for gui compiled in distrobox (put in .local/share/applications folder):
[Desktop Entry] Type=Application Version=1.0 Name=VSCode (Distrobox) Comment=Code Editing. Redefined. Exec=sh -c 'distrobox enter ubuntu-23-04 -- code' GenericName=Text Editor Icon=com.visualstudio.code Keywords=vscode; Categories=TextEditor;Development;IDE; Terminal=false StartupNotify=true


No comments:

Post a Comment

Getting rtcwake working on Bluefin

#!/bin/bash # User systemd setup for auto suspend/wake on Bluefin #Please run these two commands manually: #1. First, create the sudo rule: ...