Programming

Setting Up an Ubuntu WSL2 Environment with XFCE on Windows

• Bookmarks: 1


In Windows

  1. Download the Image
    Download an Ubuntu cloud image, such as noble-server-cloudimg-amd64-root.tar.xz, from Ubuntu Cloud Images.
  2. Create a New WSL2 Image
    Use WSL Manager to create a new WSL2 image from the downloaded .tar.xz file.
  3. Start the New WSL2 Image
    Launch the newly created WSL2 instance.

Now Inside WSL

  1. Update Package Lists apt update
  2. Install XFCE and XRDP apt install xfce4 xrdp
  3. Set XFCE as the Default Session echo xfce4-session > ~/.xsession
  4. Restart XRDP Service service xrdp restart
  5. Install Additional Tools apt install net-tools -y apt install dbus-x11 apt install libguestfs-tools
  6. Set a Root Password (Required for XRDP login) passwd
  7. Get the IP Address ifconfig | grep inet Look for an entry like inet 172.27.172.177 and copy the IP address.
  8. Connect via Windows Remote Desktop
    Use Windows Remote Desktop (RDP) to connect to the copied IP address and log in with your WSL2 credentials.

Now you have a fully functional Ubuntu environment with XFCE running on WSL2! 🚀

comments icon0 comments
0 notes
12 views
bookmark icon

Write a comment...

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.