Skip to content

Debugging with VNC

Kenta Kubo edited this page Sep 15, 2024 · 6 revisions

How to use on Fedora Asahi Remix 40:

  1. Enable QEMU's VNC support
    1. Install dependencies
      • Fedora 40: sudo dnf install pixman-devel
      • Debian 12: sudo apt install --no-install-recommends ninja-build libglib2.0-dev flex bison libpixman-1-dev
    2. Build QEMU again with VNC enabled
      1. Download source code
      2. tar xvf <downloaded .tar.xz file>
      3. cd <extracted directory>
      4. ./configure --enable-vnc
      5. make -j
      6. sudo make install
  2. Run QEMU
    1. Change the current directory to swift_os
    2. Modify Makefile (or instead, you can use SSH port forwarding using a SSH client app (e.g. Blink Shell))
      -       $(QEMU) -machine raspi4b -kernel $(IMG) -serial stdio
      +       $(QEMU) -machine raspi4b -kernel $(IMG) -serial stdio -display vnc=0.0.0.0:0
    3. Run make run
  3. Connect to <IP address>:5900 from a VNC client (e.g. Screens or RealVNC Viewer)
Clone this wiki locally