TL;DR — On the ClockworkPi uConsole (CM5, Debian, Wayland/labwc), screen sharing in Chromium shows vertically flipped or incorrectly rotated. This patch fixes it by modifying
xdg-desktop-portal-wlrto rotate captured SHM buffers before sending them to pipewire. Chromium ignores pipewire's VideoTransform metadata, so the rotation must be applied to the pixel data itself.Quick fix: Apply the patch below, rebuild
xdg-desktop-portal-wlr, install, and restart portal services.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import subprocess | |
| import threading | |
| import gi | |
| gi.require_version('Gtk', '3.0') | |
| gi.require_version('AyatanaAppIndicator3', '0.1') | |
| from gi.repository import Gtk, AyatanaAppIndicator3, GLib | |
| APP_ID = 'cellular-indicator' |
Full walkthrough: building box64 on Raspberry Pi CM5 Lite (Debian 13) and running OpenCode Desktop natively on ARM64
A full walkthrough for building box64 on a Raspberry Pi Compute Module 5 Lite and getting OpenCode Desktop running natively on ARM64.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| portainer: | |
| container_name: portainer | |
| image: portainer/portainer-ce | |
| command: -H unix:///var/run/docker.sock | |
| restart: always | |
| ports: | |
| - 8000:8000 |
Root of the Django project is where manage.py resides
$ mkdir basic_django$ cd basic_django$ virtualenvassume user already !pip install --user virtualenv$ virtualenv -p python3 .$ source bin/activate$ pip install django
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from flask import Flask | |
| from flask_restful import Api, Resource | |
| app = Flask(__name__) | |
| api = Api(app) | |
| names = { | |
| "kukkik": { | |
| "age": 30, | |
| "gender": "male" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### !pip install pathos | |
| import multiprocessing | |
| import concurrent.futures | |
| from pathos.multiprocessing import ProcessingPool | |
| workers = int(multiprocessing.cpu_count()) | |
| @errors_pusher | |
| def parallel_threading(main_func, | |
| lst_args: list, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### cat /etc/systemd/system/ngrok_8888_self_restart.service | |
| [Unit] | |
| Description= bachkukkik_xavier start ngork on system boot | |
| [Service] | |
| Type=simple | |
| PIDFile=/run/ngrok_jupyter.pid | |
| ExecStart=/home/<your username>/ngrok http http://localhost:8888 | |
| User=<your username> | |
| Group=<your group> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## if not yet done | |
| ## $ jupyter notebook --generate-config | |
| ## $ jupyter notebook password | |
| ## $ python | |
| ## [1] from notebook.auth import passwd | |
| ## [2] passwd() # fill in correct password | |
| ## [3] exit() | |
| ## $ sudo nano ~/.jupyter/jupyter_notebook_config.py | |
| c.NotebookApp.allow_remote_access = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### cat /etc/systemd/system/jupyter_self_restart.service | |
| [Unit] | |
| Description= pi_kk start Jupyter Notebook on system boot | |
| [Service] | |
| Type=simple | |
| PIDFile=/run/jupyter.pid | |
| ExecStart=/home/pi/.local/bin/jupyter-notebook --config=/home/pi/.jupyter/jupyter_notebook_config.py | |
| User=pi | |
| Group=pi |
NewerOlder