Documentation

VexOS Desktop 2.2.1

VexOS Desktop is a Debian trixie live desktop for web development. This page covers installing it, using DevStudio, the tutorials, building the ISO, and common problems.

Install in VirtualBox

  1. Download the ISO from GitHub Releases. Check that the download finished before you continue.
  2. Create the VM. Type Linux, version Debian (64-bit), 4 GB RAM (more is better), and 2 CPUs. A disk is optional because this is a live system.
  3. Set the display. Under Display, set Graphics Controller to VMSVGA and Video Memory to 128 MB. The desktop uses the largest resolution the VM offers at login.
  4. Attach the ISO to the optical drive, then start the VM. BIOS works by default. Enable EFI only if you need UEFI.
Window sizeThe image has no VirtualBox Guest Additions yet, so the desktop does not resize when you resize the VM window. If it stays small, open Settings > Display and pick the largest resolution.

First login

The live user is vex with the password vexos, and it has sudo. Change the password after your first login with passwd.

Changes you make in the live session are lost on reboot. To keep files, copy them to a shared folder or install the system to disk when that option is available.

The desktop

  • Top bar: applications menu, clock, and system tray.
  • Dock: on the left, with Firefox, Terminal, and VexOS DevStudio.
  • Look: the Yaru dark theme in VexOS red, Yaru icons, and the Ubuntu font.
  • Desktop folder: sample files. hello-web.html runs JavaScript in Firefox, hello.py runs with python3 hello.py, and about-vexos.html shows the About page.
  • vexpad: a small terminal editor. vexpad --help shows About and system information. vexpad --guide shows the editor cheat sheet.
  • Packages: apt works on Debian mirrors. For example, sudo apt install htop.

VexOS DevStudio

DevStudio is a web IDE that runs on your computer. Open it from the dock or the application menu. It starts a local server on 127.0.0.1:8765 and opens Firefox. Only this computer can reach it.

What you can do

  • Edit files with tabs, syntax colors, and Ctrl+S to save.
  • Run with Ctrl+Enter: C and C++ (gcc and g++), Python, JavaScript (Node.js), Rust, and shell scripts. Answer a program's questions in the input box.
  • Create projects from the New project menu: C, Python, Node.js, static web page, React (Vite), Next.js, and Rust (Cargo).
  • Preview running web apps in the Preview tab.
  • Use the terminal box for any command in the selected folder, for example npm install axios.
  • Ask the AI to explain code, fix the last error, improve a file, or write tests.

Projects live in ~/VexProjects.

Add your Groq API key

  1. Create a key at console.groq.com/keys.
  2. In DevStudio, open Settings, paste the key, and click Save.
Where the key goesThe key is saved only on this computer, in a file that only your user can read. The screen shows only its last characters. It is sent only to api.groq.com, when you ask the AI something.

Known limits

  • The syntax-colored editor loads from the internet the first time. Without internet, DevStudio uses a plain text editor.
  • React and Next.js projects download packages when they are created, so they need internet.
  • Debian's npm is version 9.2. To update it, run sudo npm install -g npm@latest.
  • There is no debugger panel yet. Use gdb from the terminal.

Tutorials

1. Your first Python project

  1. Choose Python project, click New project, and name it hello-py.
  2. Open main.py, change the message, and save with Ctrl+S.
  3. Press Run. The output panel shows what the script printed.

2. A Node.js script

  1. Choose Node.js project and name it hello-node.
  2. Edit index.js and press Run.
  3. To add a package, type npm install lodash in the terminal box.

3. Install software with apt

sudo apt update
sudo apt install htop
htop

4. Edit text with vexpad

vexpad notes.txt
# i to type, Esc to stop, :wq to save and quit

5. Compile and run C

  1. Choose C project, create hello-c, and open main.c.
  2. Change the message to printf("Hello, VexOS!\n");.
  3. Press Run. Compiler warnings appear with their line numbers, and errors stop the program from running.

6. Build a React app

  1. Choose React (Vite) and create my-react. This downloads packages, so it needs internet.
  2. Open src/App.jsx, edit the text, and save.
  3. Press Run. The app opens in the Preview tab, and each save reloads it. Press Stop when you are finished.

7. Build a Next.js app

Choose Next.js app and name it my-next. The project uses TypeScript, the App Router, Tailwind, and ESLint. Run it the same way as the React app. It opens in Preview on port 3000.

8. Rust with Cargo

  1. Choose Rust (Cargo) and create hello-rust.
  2. Press Run. Cargo builds and runs src/main.rs.
  3. To add a crate, type cargo add serde in the terminal box, inside the project folder.

9. Ask the AI about an error

  1. Make a mistake on purpose and press Run.
  2. Press Fix error in the AI panel. The assistant reads the file and the last output, then explains the problem and gives a fix.
  3. Press Replace file to apply the fix, or Insert at cursor to add it where you are typing.

10. Make a web page

  1. Choose Static web page and create my-site.
  2. Edit index.html and open it in the Preview tab.
  3. To try it in Firefox directly, open the file from the Desktop folder or the project folder.

Build the ISO

You can build the ISO from source on a Debian or Ubuntu machine, or in a Debian virtual machine. WSL often cannot run the build. Needs about 25 GB of free disk, 4 GB of RAM, and an internet connection. A build takes 30 to 90 minutes.

1. Install the build tools

sudo apt update
sudo apt install -y git live-build dpkg-dev

2. Download only the desktop folder

git clone --filter=blob:none --sparse --depth 1 --branch arena/fd4ab751-vexos \
  https://github.com/Nour-yahyaoui/vexos.git vexos
cd vexos
git sparse-checkout set distro/vexos-desktop
cd distro/vexos-desktop

3. Check, configure, and build

sh validate.sh          # checks files and scripts, builds nothing
sudo sh auto/config     # builds the VexOS packages and the live-build config
sudo sh auto/build      # output: live-image-amd64.hybrid.iso

The log is saved to build.log. The ISO is written to the same folder. Check its size with ls -lh *.iso. To start over, run sudo sh auto/clean.

What to expect

  • A file named live-image-amd64.hybrid.iso in distro/vexos-desktop/. It is large because it includes the development tools.
  • If the build stops, the last lines of build.log show the failing package.

Troubleshooting

The desktop is small and does not fill the window

Set Display to VMSVGA with 128 MB of video memory, then log in again. Without Guest Additions the desktop follows the VM's display mode, not the window. Use Settings > Display to choose a larger resolution.

The VM does not boot the ISO

Check that the ISO is attached to the optical drive and that it is first in the boot order. Try BIOS mode first.

The system is slow

Give the VM more RAM and two or more CPUs. Close apps you do not use.

Copy and paste does not work between my computer and the VM

Clipboard sharing needs VirtualBox Guest Additions, which this image does not include yet.

Something I installed disappeared

The live system resets on reboot. Save your files to a shared folder, or install the system to disk.

DevStudio does not open

Open the terminal and run vexos-devstudio. The server log is in ~/.local/state/vexos-devstudio/server.log.

FAQ

Is VexOS a Debian distribution?

Yes. VexOS Desktop is built on Debian trixie with live-build, and it uses Debian packages and apt.

Is it free?

The project is open source. Check the repository for the license terms.

Can I install it on a real computer?

The ISO is a live system, so it runs from the disk without changing it. Installing to disk is not part of this release yet.

Where is the source?

On GitHub at github.com/Nour-yahyaoui/vexos, by Nour-yahyaoui.

Where do I start?

Read Install in VirtualBox, then try tutorial 5 or tutorial 6. Back to the home page.