Code Monkey home page Code Monkey logo

configwsl2withgui2023's Introduction

Config WSL2 With GUI Easy 2023

Install WSL

  • Open Powershell as Administrator type: wsl --install
  • This command will enable the required optional components, download the latest Linux kernel, set WSL 2 as your default, and install a Linux distribution for you (Ubuntu by default)

Install other distros

  • To see your options type: wsl --list --online
  • Install one of them: wsl --install -d <DistroName>

Configure WSL

  • Create your account
  • Update repositorys and packages:sudo apt update && sudo apt upgrade

This checks the version

  • (Run this in Powershell) wsl -l -v

Ubuntu GUI

  • Type these to in to install required packages:
    sudo apt install -y xrdp sudo apt install -y xfce4 sudo apt install -y xfce4-goodies systemctl status display-manager.service
  • if gdm3 is not installed then go for it:
    sudo apt install -y gdm3 sudo dpkg-reconfigure gdm3 sudo systemctl start gdm3.service

Config

  • This command backs up our config file: sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak
  • Port configuration, note the right one is what we will be using: sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
  • Controls screen scaling and color:
    sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini echo xfce4-session > ~/.xsession

Edit

  • Edit the xrdp file :
    sudo nano /etc/xrdp/startwm.sh

  • Comment these lines below:
    #test -x /etc/X11/Xsession && exec /etc/X11/Xsession
    #exec /bin/sh /etc/X11/Xsession

  • Add in the very top: unset DBUS_SESSION_BUS_ADDRESS
    unset XDG_RUNTIME_DIR

  • Add these lines at the end:
    # xfce startxfce4

  • Start RDP Service: sudo /etc/init.d/xrdp start or sudo systemctl restart xrdp

Refrences:

Install Windows Terminal

configwsl2withgui2023's People

Contributors

msainzn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.