6.1 C
New York
Wednesday, November 27, 2024

Marco Attia’s Script Turns a Raspberry Pi Right into a Plug-and-Play USB Gadget with Internet VNC, VS Code



Marco Attia has launched a custom-made working system picture builder which turns a Raspberry Pi single-board pc (SBC) right into a plug-and-play USB gadget — placing a full graphical desktop and a model of Microsoft’s Visible Studio Code (VS Code) proper into the browser.

“After no less than a month of labor on this. I used to be capable of get a customized picture builder that creates a [Raspberry Pi OS] Desktop picture with an online VNC consumer (NoVNC) that I simplified to maximise the display screen property in addition to an online model of Visible Studio Code,” Attia explains. “Will probably be the premise for all of the work and tasks I run on the Pi.”

The concept is straightforward: Attia’s script produces a custom-made model of Raspberry Pi OS “Bullseye,” utilizing the Raspberry Pi’s USB controller in gadget mode to show it right into a peripheral for any USB-capable host machine. When linked to stated host machine through the Raspberry Pi’s USB Sort-C port — or micro-USB, on the Raspberry Pi Zero household — it creates a community between the 2, and fires up a desktop accessible utilizing the host’s browser.

Along with the desktop, which offers entry to any software program put in on the Raspberry Pi, the picture additionally hosts a model of Microsoft’s Visible Studio Code built-in growth atmosphere (IDE) which could be accessed as an online web page — avoiding any efficiency points that may come from utilizing a VNC server to work together with streaming snapshots of the graphical desktop.

“I ought to give credit score the place it’s due, I base this work on too many sources, together with the obscure and outdated elements of the web, to depend on my hand, however all of this was potential due to Ben Hardill’s work on the supply repository,” Attia writes, referring to Hardill’s script for producing USB gadget working system photos. “However I gotta say I’m fairly happy with the way it turned out ultimately!”

Attia’s script is on the market, together with directions on its use, on GitHub underneath the permissive Apache 2.0 license; it’s, nevertheless, solely appropriate with Raspberry Pi OS “Bullseye,” and never the recently-released Raspberry Pi OS “Bookworm” model which made the bounce from X11 to Wayland.

Related Articles

Latest Articles