Skip to content

Wsl2 sandbox

Developer Sandbox Setup

Welcome to Unovie, AI platform for Edge.

To make it easier for developer's we intend to provide a sandbox environment so it's easier to get consistent learning experiences.

Please follow these instructions and let us know how we can improve this documentation for future newbie's. Your feedback is very important to us.

Linux VM Install.

To install Windows Subsystem for Linux (WSL) version 2 with Ubuntu 24.04 LTS on Windows 10, follow the steps below:

Step 1: Update Windows to the latest version and enable Developer Mode

Go to Settings > Update & Security > Windows Update, then click Check for updates and install any available updates.

Once your system is up-to-date, go back to Settings > Update & Security > For developers, and ensure that "Developer mode" is turned on. If not, switch it on by clicking the toggle button. You may be prompted to restart your computer after enabling Developer Mode.

Step 2: Enable Virtual Machine Platform feature (Optional) This step ensures a smoother installation process for WSL2 and is recommended if you are using Windows build 19041 or later, which comes with the May 2020 Update (version 2004). To enable this feature:

Press Win + X and select "Windows PowerShell (Admin)" from the menu that appears. This will open a new Windows PowerShell window with admin privileges.

In the PowerShell window, run the following command to enable the Virtual Machine Platform feature:

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -All
Restart your computer after enabling the Virtual Machine Platform feature if prompted.

Step 3: Install WSL2

Open a Windows PowerShell with administrative privileges as described in step 2 of Step 2.

Run the following command to enable the WSL2 Linux kernel feature (this is only required for versions prior to Windows build 19041):

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Restart your computer when prompted. After the restart, open a PowerShell window again with administrative privileges and run these commands to install WSL2:

wsl --install -d Ubuntu-24.04

Step 4: Set up default user for Ubuntu on WSL2 After installing the Ubuntu distribution, you may want to create a new user account within it and set it as your default user. Here's how to do this:

Launch the Ubuntu distribution by typing wsl in the Windows search bar or running the command

wsl -d Ubuntu-24.04

Once you are logged into the Ubuntu environment, open a terminal window and run these commands to create a new user account:

sudo adduser unovie

Set your default password during the username creation process. After creating the user, log out from your current session (you can do this by typing exit or pressing Ctrl + D), and then run the following command to set it as your default Ubuntu user:

wsl --set-default-user unovie -d Ubuntu-24.04

Now, every time you launch WSL with wsl or from the Windows search bar, you'll be logged in to your new user account by default.

Step 5: Update and upgrade packages Once you have set up Ubuntu on WSL2, it is a good idea to update and upgrade all installed packages to ensure that everything is running smoothly:

Run the following commands in the Ubuntu terminal window to update your package lists and then install any available updates:

sudo apt-get update
sudo apt-get upgrade -y

Congratulations! You have successfully installed WSL2 with Ubuntu 24.04 LTS on Windows 10, and you can now start using the Linux environment right from your Windows machine.

Windows Terminal

Install Windows Terminal which allows you to work with WSL2 easily

Follow this link to install https://apps.microsoft.com/detail/9n0dx20hk701?rtc=1&hl=en-us&gl=US

Install Sandbox Packages

In terminal execute the following script

apt-get -y -qq install curl
clear
bash <(curl -s https://unovie.ai/docs/assets/sandbox.sh)
bash <(curl -s https://unovie.ai/docs/assets/update.sh)

Now follow the instructions to setup DIFY to support ollama model.