Yu OS

Install
Yu OS.

Add Yu Agent to Ubuntu, install from a prebuilt WSL image, or build from source.

On Ubuntu

Open Terminal on a 64-bit Ubuntu computer (Intel, AMD or ARM). You'll need administrator access and curl.

  1. Add the signed package source

    Terminal
    repo=https://xiaoyu-work.github.io/Yu-OS/apt
    keyring=/usr/share/keyrings/yuos-archive-keyring.gpg
    temp_key="$(mktemp)" &&
    curl -fsSL "$repo/yuos-archive-keyring.gpg" -o "$temp_key" &&
    test -s "$temp_key" &&
    sudo install -D -m 0644 "$temp_key" "$keyring" &&
    rm -f "$temp_key" &&
    printf 'deb [arch=%s signed-by=%s] %s trixie main\n' \
      "$(dpkg --print-architecture)" "$keyring" "$repo" \
      | sudo tee /etc/apt/sources.list.d/yuos.list >/dev/null
  2. Install Yu Agent

    APT checks the repository signature before installing the Agent.

    Terminal
    sudo apt-get update --error-on=any &&
    sudo apt install yuos-agent
  3. Start your first chat

    Check that the service is active, then set up a model and open Yu Agent.

    Terminal
    systemctl is-active yuosd.service &&
    yu agent setup text &&
    yu agent chat

Windows / WSL

Download the Yu OS .wsl image for your computer. With WSL 2 installed, open PowerShell in the download folder and run the command below, using the filename you downloaded.

PowerShell
wsl --install --from-file ".\yuos-wsl-amd64.wsl" --name yuos --version 2

Build from source

On Linux or WSL2, clone Yu OS into your home directory. You'll need Git and terminal access to github.com.

Linux terminal
cd ~ &&
git clone https://github.com/xiaoyu-work/Yu-OS.git &&
cd Yu-OS

Run the build commands below from the checkout. If you already have the source, skip cloning and open that directory. These options require build tools and package access.

Windows / WSL2
Linux terminal
sudo ./build.sh wsl

In PowerShell, open the checkout folder or use the path to the built .wsl file.

PowerShell
wsl --install --from-file .\build\yuos-wsl-amd64.wsl `
    --name yuos --location C:\WSL\yuos --version 2
Docker / OrbStack

With Docker or OrbStack running, build the headless yuos image locally.

Linux terminal
./build.sh docker
Headless VM (experimental)

With QEMU installed, build and boot the amd64 disk. On first boot, set the password for yu, then sign in with that account.

Linux terminal
sudo ./build.sh vm &&
qemu-system-x86_64 -m 2G -nographic \
  -drive file=build/yuos-vm-amd64.qcow2,format=qcow2,if=virtio
Desktop VM / ISO (experimental)

These builds require an authorized package signer, signed App packages and a sealed Desktop Shell. They are intended for development.

For VMware, build the desktop image and attach the resulting .vmdk as an existing disk in a new VM.

Build a VMware disk
sudo ./presets/desktop.sh

To test the installer, boot the generated ISO in a VM with an empty virtual disk.

Build an installer ISO
sudo ./build.sh iso-installer
Azure

Build a fixed VHD for a Generation 2 VM. Azure sets up the administrator account and SSH key when it starts.

Linux terminal
sudo ./build.sh azure

Already installed?

Get updates from the signed package source without reinstalling Yu OS.

Terminal
sudo apt-get update --error-on=any &&
sudo apt full-upgrade