How to Install WSL2 & Ubuntu Linux GUI (XFCE Desktop) on Windows 10

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • We go through How to Install WSL2 & Ubuntu Linux GUI (XFCE Desktop) on Windows 10. We first install WSL2 and make sure we have the latest update of Windows 10 before installing the container for Ubuntu Linux 20.04 and then we follow it up with installing a GUI (XFCE DE) for Ubuntu Linux 20.04. This then helps us use a GUI / Desktop with WSL2 & Ubuntu Linux 20.04
    We'll use vcxsrv to connect to our desktop environment that we end up installing on Ubuntu using WSL2 and Windows 10. If you've every wanted to try Linux on Windows today we'll go through how. This is a system to use Linux designed by Microsoft and helps you leverage a subsystem of Windows in order to run Linux on your computer. This is a fairly new feature at least the second update (WSL2) and helps give better support for your Linux container.
    IF you run into any issues trying to restart your xfce server running on Ubuntu use the following command: export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
    There's a known bug that prevents you from running "startxfce4" over and over again because it seems like there's a locked file in the background.
    My Linux Cheat Sheet and 25 Page Checklist here:
    📚 learn.savvynik...
    Share this free tool and support Small RUclipsrs
    editbulk.com
    (I made this tool to help creators)
    Useful Links/Commands:
    Discord Link - / discord
    Ubuntu Container - www.microsoft....
    VcXsrv - sourceforge.ne...
    WSL2 Win Kernel - docs.microsoft...
    #linux #wsl2 #howto

Комментарии • 293

  • @Drezzomir
    @Drezzomir 3 года назад +9

    You sir are a genious! I finally got to set up my remote session after misserably failing every attempt to connect through windows' default remote session set-up.
    Thank you very much!

    • @SavvyNik
      @SavvyNik  3 года назад +2

      Glad I could help, make sure to smash that like button for me if you haven't already ^^

  • @shellz831
    @shellz831 Год назад +5

    Thanks. Works ALMOST like a charm. If xfce4 display is still blank, use "sudo startxfce4". As a general rule, with Linux, if it fails, try with "sudo" before you start pulling out your hair.

    • @SavvyNik
      @SavvyNik  Год назад

      haha thanks for sharing the exp

    • @anthonyrono8607
      @anthonyrono8607 8 месяцев назад

      this comment save me.

    • @maryamsh4536
      @maryamsh4536 5 месяцев назад

      thank u so much!!! you saved me after couple of hours of failing!!

    • @GANGSTA_CHUROOO
      @GANGSTA_CHUROOO 5 месяцев назад

      it gives me
      /usr/bin/startxfce4: X server already running on display 10.0.0.222:0
      xrdb: Resource temporarily unavailable
      xrdb: Can't open display '10.0.0.222:0'
      any help

  • @tinyoofman3361
    @tinyoofman3361 3 года назад +4

    Hey dude, just wanna say thanks so much! It worked first try for me. Hope the comments asking questions aren't too repetitive :)

    • @SavvyNik
      @SavvyNik  3 года назад +1

      You're welcome!! Haha they can definitely get repetitive, but these are the types of comments that more than make up for it =) glad you found the video helpful.

  • @WillShattuck
    @WillShattuck 3 года назад +5

    Thanks for the tutorial. I couldn't find the article that gave these same instructions. But I did find your video and it is very easy to follow along with . Thanks !!!!!!!

    • @SavvyNik
      @SavvyNik  3 года назад

      You're welcome! There is no article it's my setup haha. Anyways I'm glad you found it helpful. Make sure to smash that like button for me =)

  • @SavvyNik
    @SavvyNik  4 года назад +26

    It has been reported that enabling the "Virtual Machine Platform" feature from Windows can cause issues with other Hypervisors including VMware and Virtual Box. Be aware and disable the feature if issues arise. A future Windows update might fix the issue, but as of now I haven't found a work-a-round.
    Couple More Mentions : IF you run into any issues trying to restart your xfce server running on Ubuntu use the following command: export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
    There's a known bug that prevents you from running "startxfce4" over and over again because it seems like there's a locked file in the background.
    Also if you get Installation failed with error 0x80070003 or error 0x80370102 make sure to enable HyperVisor support (VT-x or AMDv) in your BIOs settings.
    For more troubleshooting refer to - docs.microsoft.com/en-us/windows/wsl/install-win10

    • @scgrigsby
      @scgrigsby 4 года назад +2

      Also the Windows update mentioned to be installed before doing all of this has re-introduced the BSOD caused by tcp/ip service failing. I had to wait for M$ to give me an update almost a month after it first appeared to get this failure to stop. The mentioned update started it again and just like before BSOD occurs every 24 to 48 hours. I shut down ALL wireless and use only the RJ-45 connection, shut down Virtual Box (use it only when necessary), updated all drivers as before and yet the problem is back again. I have been around windows since 3.1 and for me the last stable version was XP. As for me everything since as been a nightmare with constant bugs. Some times I wonder if the RTM is really just the Beta Version dumped on unsuspecting consumers thus earning M$ the reputation of never buy any M$ product until AFTER Service Pack 1 for the M$ product. Personally I am fast approaching the point of full conversion to Linux and looking at Windows in my rear view mirror.

    • @SavvyNik
      @SavvyNik  4 года назад +1

      ​@@scgrigsby - Ouch that sounds like a nightmare and I'm with you all the way. The last good Windows that I enjoyed using was probably Win7 (I still use to this day). After that it has been a disaster using Windows... and I could believe they're pushing beta patches just because of other bugs that they think need to be addressed quickly and are foregoing the actual full debug process, but that's just speculation of course. I've had to move almost everything to Windows. Although some of the programs I use for work are just not available (and sadly probably never will be) on Linux. It'll be nice one day when I can make the full conversion, but for now, I'll mainly use Linux personally and have to bare with the issues that come.

    • @comprendes_mendes
      @comprendes_mendes 2 года назад +1

      This is still an issue, and this advice helped me. Thanks.

  • @mattroncoso5492
    @mattroncoso5492 2 года назад +2

    Thank you it worked. I had a little problem allowing WSL 2 instead of WSL 1 but i solved it on with wsl --set-version Ubuntu 2

    • @SavvyNik
      @SavvyNik  2 года назад +2

      Glad you found the vid helpful!

  • @justsomerandompersononthei2595
    @justsomerandompersononthei2595 4 года назад +22

    Ah yes, Lindows 10.

    • @SavvyNik
      @SavvyNik  4 года назад +1

      Good ol windows! Haha for the people who don't want to step away and like using the windows tools xD

    • @justsomerandompersononthei2595
      @justsomerandompersononthei2595 4 года назад +3

      SavvyNik And also for people who want to learn Linux but use Windows tools and don't want to mess around with WINE. I have no choice but to mess around with WINE until something works, as Windows has gotten worse and worse throughout the 2010's.

    • @SavvyNik
      @SavvyNik  4 года назад +2

      @@justsomerandompersononthei2595 Yeah the only thing it requires sometimes is patience :D

  • @adnanrasheed5494
    @adnanrasheed5494 6 месяцев назад +1

    Thank You! So much I'm extremely thankful to you . Your guidance make it possible do this difficult task . I 've tried too much tries from different sources but I can't do it . But only due to your guidance it's make it possible. Thank You.

    • @SavvyNik
      @SavvyNik  6 месяцев назад

      Glad it helped!

  • @agostinhomatos321
    @agostinhomatos321 3 года назад +14

    I did everything as explained in your video, however when I finally did "startxfce4", I got the following error:
    "/usr/bin/startxfce4: X server already running on display 172.17.112.1:0". The mentioned ip address was the result of the command "cat /etc/resolv.conf" and that I included in the appended line of .bashrc as suggested.

    • @TilSkywalker
      @TilSkywalker 3 года назад

      Did you find a solution for that?

    • @agostinhomatos321
      @agostinhomatos321 3 года назад +2

      @@TilSkywalker No, I did not. I returned to WSL version 1 with Xming xserver, it allows me to run most linux graphical programs, better than in WSL 2. Plus, I am using VMWare Workstation Player to install and test many linux distros, installing all virtual machines into a dedicated ssd drive, internally installed for this specific purpose. I am quite satisfied with this solution.

    • @samihautamaki6229
      @samihautamaki6229 2 года назад +8

      I had over 2 hours of fighting with this one and finally, I found a fix from the depths of google. For me, it was the firewall that was blocking the whole connection. I allowed xlaunch to connect locally.

    • @frax1154
      @frax1154 2 года назад

      @@samihautamaki6229 Thank you

    • @Motivationalescape8265
      @Motivationalescape8265 2 года назад

      @@samihautamaki6229 how do you launch xlaunch locally

  • @satishgadade1193
    @satishgadade1193 3 года назад +1

    thanks for sharing. i struggle hard to get this from different website but with your video. it worked.

    • @SavvyNik
      @SavvyNik  3 года назад

      Awesome to hear!! Glad you found it helpful. Make sure to smash that like button for me if you haven't already =)

  • @arndsen
    @arndsen 3 года назад +7

    It says after startxfce4 "/usr/bin/startxfce4: X server already running on display 172.31.240.1:0"
    what might be the problem?

    • @jemoeder841
      @jemoeder841 2 года назад

      I have the same problem (but with another ip, 192.168.xx.x), did you fixed it?

    • @omraniomaima
      @omraniomaima 2 года назад

      @@jemoeder841 same problem , did you found solution for this problem ??

    • @jemoeder841
      @jemoeder841 2 года назад +1

      @omrani omaima, for me the fix was going to my firewall settings and allow Xserver on public networks. For a reason my computer sees my home network as a public one, so connections were blocked to Xserver. Hope this helps!

    • @omraniomaima
      @omraniomaima 2 года назад +1

      @@jemoeder841 thanks 😃 , it works

    • @vijaykumarbarige5627
      @vijaykumarbarige5627 2 года назад

      @@jemoeder841 yes, it worked like a charm. Thank you..

  • @winanci
    @winanci 2 года назад +2

    You're a superstart! Thanks. All good and done smoothly on my Windows Ubuntu

    • @SavvyNik
      @SavvyNik  2 года назад

      You're welcome! Glad you got things running smoothly.

  • @d029w7
    @d029w7 3 года назад +5

    The tutorial is easy to follow. Thank you!

    • @SavvyNik
      @SavvyNik  3 года назад

      Awesome to hear! Glad you enjoyed it and make sure to smash that like button for me if you haven't already =)

  • @rohitdesai8400
    @rohitdesai8400 3 года назад +5

    For those who are facing black screen (X server already running on display X.X.X.X:0 ) after relaunch or reboot try this :
    Go and open resolve.conf : nano /etc/resolv.conf
    Note down the new port address it might have changed due to reboot.
    open ~/.bashrc : nano ~/.bashrc and edit the port number
    then run : source ~/.bashrc
    and start the xfce again : startxfce4
    launch your old Xlaunch config file. :)

    • @SavvyNik
      @SavvyNik  3 года назад +1

      Thanks for sharing this =)

    • @SumanRajak-gb1yh
      @SumanRajak-gb1yh Год назад

      You are a lifesaver...thanks a lot

    • @ReddSpark
      @ReddSpark Год назад +1

      By "Edit port number" do you mean change the :0 at the end to some other number? If so that is not working for me.

  • @mr.anonymous298
    @mr.anonymous298 4 года назад +4

    Wow, nice tutorial!! Thanks a lot, it worked for me perfectly!

    • @SavvyNik
      @SavvyNik  4 года назад

      Awesome! Glad I could help =)

  • @gabrielrodriguesdeoliveira5424
    @gabrielrodriguesdeoliveira5424 3 года назад +1

    this is the only way what have work for me!! THANKS MAN!

    • @SavvyNik
      @SavvyNik  3 года назад

      You're welcome!! Make sure to smash the like button for me if you haven't already!

  • @FeedScrn
    @FeedScrn Год назад +1

    I found out that now, WSLg is available... even for Win 10. I'm hearing that you need WSL2 first. Don't know if that's true. I have/had WSL2 with XFCE and Ubuntu. Issued wsl -update and went to WSLg. If I issue WSL -version, I see WSLg there. In WSLg, you don't need XFCE. Just issue your GUI startup applications right in the WSL/Ubuntu terminal. They now play great and includes audio.

    • @bbrother92
      @bbrother92 2 месяца назад

      This does not works when you need to see desktop - it only opens standalone app - with no evnironment - only app isself

  • @danyliscia
    @danyliscia 2 года назад +3

    Nick your tutorial is perfect, thank you. Perhaps it will be useful to know that in addition to the X server "VcXsrv" xfce also works well with GWSL, which is always based on VcXsrv.

    • @SavvyNik
      @SavvyNik  2 года назад

      Thanks for the info! Glad you enjoyed the tutorial.

  • @David-yw5fg
    @David-yw5fg Год назад +1

    The installation worked fine, but when I am leaving Ubuntu for about 15 minutes, everything just freezes and I have to restart

    • @David-yw5fg
      @David-yw5fg Год назад

      Apparently, preventing Ubuntu from going to sleep, will prevent this from happening

  • @AmyotsStuff
    @AmyotsStuff 3 года назад +2

    /usr/bin/startxfce4: Starting X server
    /usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server
    xinit: giving up
    xinit: unable to connect to X server: Connection refused
    xinit: server error

  • @kamkam_99
    @kamkam_99 3 года назад +1

    Linux側のデスクトップをメインにして使いたい。
    UbuntuにWindowsアプリのアイコンを置いてLinux画面のままWindowsソフトが起動できたら最高だ。
    Compizも使えると更に良い。
    ゲームのためだけにメインPCよりもスペックの良いサブPCを購入するなんてナンセンスだから。

  • @vvvv-lp8tm
    @vvvv-lp8tm 2 года назад +1

    I was gonna say hes a genious but i see I must say he is a freaking genious instead!

    • @SavvyNik
      @SavvyNik  2 года назад

      Haha well that’s kind

  • @prufenful
    @prufenful Год назад +1

    I don't have "lightdm", as beginner I'm not even sure how it's involved, but it does not pop up automatically if i install XFCE4

    • @scooterdude17
      @scooterdude17 7 месяцев назад

      I had the same issue. It stayed at the terminal

  • @chris122380
    @chris122380 3 года назад +1

    Why install xfce and not the xubuntu package? That way you get the better Ubuntu xfce themeing?

  • @imaprogrammer6154
    @imaprogrammer6154 4 года назад +1

    Thank you very much for the nice explanation!

    • @SavvyNik
      @SavvyNik  4 года назад

      You're welcome. Glad you enjoyed the video. Make sure to smash that like button for me on the vid if you haven't already =)

  • @MartyJames23
    @MartyJames23 14 дней назад

    I'm not sure how I fixed it, but after many restarts and exiting, I think after all the troubleshoot. All I did was wait for awhile, then it showed up, I have no internet and no sound, but I have a gui. It's faster than Hyper-V though to be honest. Thanks for the tutorial

  • @blackknight9710
    @blackknight9710 3 года назад +2

    please help, mine says,
    "/usr/bin/startxfce4: X server already running on display 192.168.10.1:0
    xrdb: Connection refused
    xrdb: Can't open display '192.168.10.1:0'
    Unable to init server: Could not connect: Connection refused
    xfce4-session: Cannot open display: .
    Type 'xfce4-session --help' for usage."

    • @pranavtupe8290
      @pranavtupe8290 3 года назад +1

      I am also facing same problem

    • @MartyJames23
      @MartyJames23 14 дней назад

      Im going through the same problem as well.

  • @WarlikeLaux
    @WarlikeLaux 4 года назад +3

    How fix it?(
    /usr/bin/startxfce4: X server already running on display 192.168.0.1
    xrdb: Can't open display '192.168.0.1'
    xfce4-session: Cannot open display: .
    Type 'xfce4-session --help' for usage.

    • @WarlikeLaux
      @WarlikeLaux 4 года назад

      If try
      export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
      then
      /usr/bin/startxfce4: X server already running on display 192.168.0.1
      192.168.0.1
      fec0:0:0:ffff::1:0
      xrdb: Connection refused
      xrdb: Can't open display '192.168.0.1
      192.168.0.1
      fec0:0:0:ffff::1:0'
      xfce4-session: Cannot open display: .
      Type 'xfce4-session --help' for usage.

    • @SavvyNik
      @SavvyNik  4 года назад

      Read my pinned comment it might help you.

    • @WarlikeLaux
      @WarlikeLaux 4 года назад

      @@SavvyNik I tried it, doesnt work(( Logs are up.

    • @rohitdesai8400
      @rohitdesai8400 3 года назад

      @@WarlikeLaux hope this should solve your problem
      Go and open resolve.conf : nano /etc/resolv.conf
      Note down the new port address it might have changed due to reboot.
      open ~/.bashrc : nano ~/.bashrc and edit the port number
      then run : source ~/.bashrc
      and start the xfce again : startxfce4
      launch your old Xlaunch config file. :)

  • @yumyum3266
    @yumyum3266 4 года назад +3

    gonna try this out 😍😍😍😍

  • @wolfzert
    @wolfzert Год назад +2

    Excelente, me ayudo mucho tu tuto! :D

  • @hariharanramamurthy9946
    @hariharanramamurthy9946 4 года назад +2

    thanks for your clear command guidance,can you say how to end xfce4

    • @SavvyNik
      @SavvyNik  4 года назад

      @Bhuvaneshwaran Ramamurthy
      - You can use the logout button or in terminal xfce4-session-logout (xfce4-session-logout --halt
      ). That should log you out of the current xfce session. Otherwise, you can kill the processes for the x server (this isn't graceful).

  • @suribabu9396
    @suribabu9396 4 года назад +1

    Very nice.. its working...Thank you

    • @SavvyNik
      @SavvyNik  4 года назад

      No problem, glad I could help! Make sure to smash that like button for me if you haven't already =)

  • @johnmcgiv1
    @johnmcgiv1 2 года назад +1

    Excellent presentation.

    • @SavvyNik
      @SavvyNik  2 года назад

      Glad you liked it!

  • @jonathanmoore5619
    @jonathanmoore5619 3 года назад +2

    SN... Nice video... Bit I think you will find there is no sound... Any idea? How to get it working? Kali win-hex does all of this... But Ubuntu ... Can't get the sound, pulse Audio to work. A nice problem to solve, if you can.

    • @SavvyNik
      @SavvyNik  3 года назад

      Not something I've messed with. Never needed sound. I'm sure if you google it someone has tried. Kali win-hex makes things much easier.

    • @jonathanmoore5619
      @jonathanmoore5619 3 года назад +1

      @@SavvyNik I found a solution. I'll post the link if anyone is interested. Cheers.

    • @SavvyNik
      @SavvyNik  3 года назад

      @@jonathanmoore5619 Yeah you should post the link. You're not the first person to ask. Thanks!

    • @jonathanmoore5619
      @jonathanmoore5619 3 года назад +2

      @@SavvyNik ruclips.net/video/nKCe9UE-quA/видео.html
      Here it is.... Ubuntu.

    • @SavvyNik
      @SavvyNik  3 года назад

      @@jonathanmoore5619 Thanks for sharing this!

  • @misten61pj56
    @misten61pj56 7 месяцев назад

    default display manager pink screen doesn't come up after installing desktop

  • @zakidzz
    @zakidzz 3 года назад

    i was all day in totorials and your workkkkkkkssssssssssssssssss

    • @SavvyNik
      @SavvyNik  3 года назад

      Awesome to hear! Make sure to smash that like button for me if you haven't already =)

    • @zakidzz
      @zakidzz 3 года назад +1

      @@SavvyNik really a thank you from deep of the heart❤️❤️❤️it was simple clear easy and most of all it works +1 like +1 subscribe +1 ennible notifivation +1 save vedio +1 😂😂😂

    • @SavvyNik
      @SavvyNik  3 года назад +1

      Well that means a lot!! Thanks for supporting the channel I appreciate it. Super glad you got things working.

  • @roiskelappa5597
    @roiskelappa5597 Год назад

    This seems to not work anymore, the installation does not ask for a display manager and nothing shows up on VcXsrv.

  • @sollunayoga8983
    @sollunayoga8983 3 года назад +1

    Nice Video, how much storage space has the subsystem?

    • @SavvyNik
      @SavvyNik  3 года назад

      It grows until it can't grow anymore... haha it's whatever the system storage is.

  • @thepelican3810
    @thepelican3810 3 года назад +2

    when I type startxfce4 and push enter I get xrdb: Connection timed out

    • @jiamingwang9653
      @jiamingwang9653 3 года назад

      I have the same problem

    • @fleatoncontour5213
      @fleatoncontour5213 3 года назад +1

      I added C:/Program Files/VcXsrv/vcxsrv.exe to firewall exceptions and it started working.

    • @jpq6483
      @jpq6483 3 года назад

      @@fleatoncontour5213 thanks man

  • @louiereyes1306
    @louiereyes1306 18 дней назад

    Thank you so much! 1issue I have with the GUI is it's flagged as trojan by some AV. is it resolved now?

  • @aningako
    @aningako 4 года назад +2

    thank you for sharing.

    • @SavvyNik
      @SavvyNik  4 года назад

      No problem Christian =)

  • @Inv4d3rSum0
    @Inv4d3rSum0 Год назад

    What if the purple screen never pops up asking what I want to install???

  • @helgeapps
    @helgeapps 3 года назад +1

    startxfce4: X server already running on display - and no window with display...

    • @helgeapps
      @helgeapps 3 года назад

      video is wrong, you should use local ip of your windows pc adapter, and not wsl ip adapter

  • @greggv8
    @greggv8 Год назад

    startxfce4 tells me it's already running but the Linux desktop window remains all blank and black

  • @mohammadhassanpour9330
    @mohammadhassanpour9330 3 года назад +1

    Web browser is not working it gives an error

  • @scooterdude17
    @scooterdude17 7 месяцев назад

    I am following step by step and I was not prompted for the display manager. Anyone know how I get to the menu?

  • @imsangimchen2900
    @imsangimchen2900 4 года назад +2

    Thanks for sharing. Worked perfectly fine. Can someone please explain what the additional parameter "-ac" for VcXsvr does?

    • @SavvyNik
      @SavvyNik  4 года назад +1

      I believe it disables access control because there's a bug with the type of access to the server otherwise. This allows the server to be accessed publicly on the local network and gets around some known issue. You can reference this github issue: github.com/microsoft/WSL/issues/4106

    • @imsangimchen2900
      @imsangimchen2900 4 года назад +1

      @@SavvyNik Thanks man. Really appreciate it.

    • @SavvyNik
      @SavvyNik  4 года назад +1

      @@imsangimchen2900 No problem, make sure to smash that like button for me on the video if you haven't already =)

    • @imsangimchen2900
      @imsangimchen2900 4 года назад +1

      @@SavvyNik consider it done :)

    • @SavvyNik
      @SavvyNik  4 года назад

      @@imsangimchen2900 Awesome ^^

  • @shyamprasaths4201
    @shyamprasaths4201 3 года назад +1

    instead using virtual machine for run ubuntu , Is this method will reduce of consuming our resources ??? or both method will take similar resources

    • @SavvyNik
      @SavvyNik  3 года назад

      If you use the WSL2 method you'll probably be down to less resource usage since everything's built into Windows and you don't have to start another program to run and virtualize Linux over top of Windows.

  • @suribabu9396
    @suribabu9396 4 года назад +1

    But in another PC i'm getting error like this:
    xrdb:connection timed out
    xrdb:can't open display '172.24.128.1:0'
    please solve this error?

    • @SavvyNik
      @SavvyNik  4 года назад

      Read the pinned comment.

  • @thwisse
    @thwisse Год назад +1

    wow! thank you!

  • @code8631
    @code8631 2 года назад

    was getting connection refused with nameserver than manually checking ip of windows machine then putting it there solved it

  • @metehanzor7898
    @metehanzor7898 2 года назад

    I appreciate for the tutorial :)

  • @philiptan9369
    @philiptan9369 2 года назад +1

    thanks, great video

    • @SavvyNik
      @SavvyNik  2 года назад

      Glad you liked it! You're welcome.

  • @kabiawuabdulwaduud4204
    @kabiawuabdulwaduud4204 2 года назад

    Please sir I have tried every command in the powershell but I keep getting help list of commands

  • @SumanRajak-gb1yh
    @SumanRajak-gb1yh Год назад

    How to Restart the X server? When I write "startxfce4" it shows "X server is already running on display...." but getting a black screen in X Server

  • @3DBricksrevival
    @3DBricksrevival Год назад

    help the ubuntu says that its already started and the screen is still black

  • @michaelinzo
    @michaelinzo Год назад +1

    I got /usr/bin/startxfce4: Starting X server
    /usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server

  • @TRUTHF0RCE
    @TRUTHF0RCE Год назад

    How different is doing this compared to running Ubuntu in virtual box? Is this lighter?

    • @SavvyNik
      @SavvyNik  Год назад

      Yes it can take less space if you’re worried about it

  • @tenroh56
    @tenroh56 4 года назад +1

    Hi have you managed to get the sound working in your xfce desktop - I see your volumeicon on the panel muted. Every video I have seen has this apart from youtuber Novaspirit Tech but I still have no success in getting audio to work following his instructions.

    • @SavvyNik
      @SavvyNik  4 года назад

      No, volume isn't something I was concerned about working with this setup.

  • @soonmyunjang3106
    @soonmyunjang3106 2 года назад

    Thank you for the information.
    However, I met a problem which the xfce's taskbar is always on the top of Windows. How can I change the setting to show the screen which is movable? Now I can see both the Windows taskbar at the bottom and the Ubuntu taskbar at the top at the same time.

  • @prashastipandey1804
    @prashastipandey1804 Год назад

    I am getting cannot open display connection refused error.. what to do

  • @pasquinarinaldi7751
    @pasquinarinaldi7751 3 года назад +1

    Thank you so much, it works fine i've a question, how can i shut down from the xfce? For now i cntrl+c in the wls 2 shell but is there another way?

    • @SavvyNik
      @SavvyNik  3 года назад +1

      There is a command like xfce shutdown/quit but I don't remember it anymore. I'm sure if you do a little searching you'll find it.

  • @Goodborni
    @Goodborni 2 года назад +1

    What's the difference between this and the videos I saw connecting to the enviroment / server through Windows Remote Connection?
    I am new to this, I mean which one works more smoothly

    • @SavvyNik
      @SavvyNik  2 года назад

      The newer WSL2 with GUI works better (look up gwsl).

    • @Goodborni
      @Goodborni 2 года назад

      @@SavvyNik tyvm for your fast reply, so gwsl is still not comparable to Oracle Virtual Box for example? I wanted to have a seemless way to get Linux up and running as an App within Windows 11, guess not possible yet?

  • @colinfousek4668
    @colinfousek4668 3 года назад

    Help, when i put in the start command, it says already running and nothing happens with xlaunch

  • @aa3697420
    @aa3697420 3 года назад +1

    hey savvyNik
    thx for this viedo
    and i got an error that the last step
    when i start the xfce4
    Ubuntu show the "X server already running on display xxx.xx.xxx.1:0""
    And then window still keep black
    how to fix this issue?
    THX!! (BTW, i use WLS2)

    • @SavvyNik
      @SavvyNik  3 года назад

      Look at the pinned comment and see if that might help.

  • @gokulraj872
    @gokulraj872 3 года назад

    Brother plz make video to install ubuntu desktop on windows 10

  • @nsxtogo6044
    @nsxtogo6044 3 года назад

    awesome, Thank you very much.

    • @SavvyNik
      @SavvyNik  3 года назад

      You are welcome! Glad you found the video helpful =)

  • @crystalwalker3430
    @crystalwalker3430 3 года назад +1

    What does this mean? /usr/bin/startxfce4: X server already running on display 172.168.150.1:0

    • @SavvyNik
      @SavvyNik  3 года назад

      If there’s already an instance of the display running you get this error. It’s common with WSL that services don’t exit out properly do you windows restrictions. Look in the pinned comment for a fix. Others have mentioned they’ve had success by adding WSL or the instance to windows firewall.

  • @ssffyy9401
    @ssffyy9401 Год назад

    Does this work using remote desktop connection? I am only seeing the black screen and in the power shell console it just says:
    "/usr/bin/startxfce4: X server already running on display 172.-.-.-:0" and nothing else is happening.
    Please guide me.

  • @chinnitalks363
    @chinnitalks363 3 года назад +1

    this is really good video

  • @nikhiljohnjose6739
    @nikhiljohnjose6739 3 года назад +2

    Hi Savvy, just saw this video as one of my friends who still use Windows said he needed to use WSL but with a GUI. I've been using Mint as my default OS (i do have Win 10 but it's been a few months since I used it) and he said he liked that desktop env. I use the Cinnamon desktop for Mint.. so I was wondering if there is a way to install Cinnamon instead of XFCE...

    • @SavvyNik
      @SavvyNik  3 года назад +1

      I don't know how personally. I haven't tried anything else besides XFCE. WSL is still very underdeveloped I would personally suggest using a virtual machine instead for your friend.

    • @SavvyNik
      @SavvyNik  3 года назад +1

      @@jumarkow Awesome!! Thanks for the instructions. I'm sure it will help some others!

  • @chinnitalks363
    @chinnitalks363 3 года назад +1

    i do have ssd 128gb and hdd 1tb. I have win10 on ssd . I want to install wsl2 on hdd.Is there any chance to install on hdd. Can I install pycharm in ubuntu wsl2

    • @SavvyNik
      @SavvyNik  3 года назад

      I don't know of a way to specify a specific storage device of where WSL will belong to. It resides on the Windows platform for which you enable it on. You can run pycharm but WSL isn't really meant for this. I would suggest a virtual machine in virtual box with Ubuntu installed and then you can do both those things that you are asking about. Make sure to smash that like button for me.

  • @DirkGardner1
    @DirkGardner1 3 года назад +1

    On the final step I get X server already running on display [my IP address]

    • @SavvyNik
      @SavvyNik  3 года назад

      try the first pinned comment fix

    • @DirkGardner1
      @DirkGardner1 3 года назад +1

      @@SavvyNik Thanks. The fix was to allow the app through windows firewall publicly. I didn't like this so managed to bypass the need for XFCE Desktop completely by installing and configuring xrdp and connecting via localhost Remote Desktop Connection. All the best!

    • @SavvyNik
      @SavvyNik  3 года назад

      Awesome to hear!! Glad you got things figured out.

  • @zakiwafiy4461
    @zakiwafiy4461 Год назад

    the configuring lightdm 10:18 didn't show up for me

  • @rajeevmittal6997
    @rajeevmittal6997 4 года назад +1

    what I need to write if I need to install GNOME

    • @Highlazertech
      @Highlazertech 3 года назад

      I need help with lunching GNOME in the ubuntu app on wsl 2. Does anyone know to do this task?

  • @NomadYeldarb3303
    @NomadYeldarb3303 Год назад +1

    well done

  • @nwedge4
    @nwedge4 3 года назад +1

    I've tried this many times. X server already running on display 172.27.176.1:0. I can't get past this.

    • @benniesmit8479
      @benniesmit8479 3 года назад +1

      Same here . Stuck

    • @Xeniammm
      @Xeniammm 2 года назад

      @@benniesmit8479
      try setting it to:
      export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
      export LIBGL_ALWAYS_INDIRECT=1
      then run:
      source ~/.bashrc
      startxfce4

  • @ashutoshpandey8107
    @ashutoshpandey8107 3 года назад

    bro my not work cd and ls in win10
    this is problem but how to fix it plz upload

  • @farazsalehi9034
    @farazsalehi9034 2 года назад

    -bash: export: `x.x.x.x:0': not a valid identifier at 11:58 ... any solutions ?

  • @g585555
    @g585555 Год назад

    感謝你的教學~

  • @ea_stus
    @ea_stus 2 года назад +1

    Nice!

  • @edwardnihal248
    @edwardnihal248 3 года назад

    Is it better to install Linux like this or in Virtual Machine, which one has a better performance?

    • @SavvyNik
      @SavvyNik  3 года назад

      It's probably better to do Virtual Machine if you want the total experience of Linux.WSL will mainly give you access to a terminal/command line interface through a linux subsystem. Which doesn't really give you the desktop experience. You can set one up like we do in the video but that isn't the best way.

  • @markojudas
    @markojudas 4 года назад +1

    Any recommendation for audio?
    I ran the command:
    pulseaudio --start --> to active PulseAudio as it seemed it wasn't
    However, I get no audio output. Help please!!!!
    I'm fairly new to Linux and I wish to learn more - eventually moving to Kali to learn ethical hacking (it's all part of a journey that I am very well aware is neither short nor easy).

    • @SavvyNik
      @SavvyNik  4 года назад +1

      Sorry Jose, I don't know of a way to port audio through WSL (not saying that you can't), but it's not something I've tried since it's mainly meant for being able to issue linux commands in a terminal. The XFCE desktop is really just an extra for people. You might want to try a VM if your interested in getting sound and being able to host Linux on your computer (maybe virtual box).

    • @markojudas
      @markojudas 4 года назад +1

      @@SavvyNik Thank you for the reply. I am just wondering. I do have a cheap laptop loaded with Linux as the OS so I'll just keep with that one. :)

    • @SavvyNik
      @SavvyNik  4 года назад

      @@markojudas Yeah that's probably a great idea =D

  • @wany11
    @wany11 Год назад

    i get a segmentation fault error any help ?

  • @vaiwalker
    @vaiwalker 3 года назад

    goddamm . perfect tutorial. went all the way through. but the browser aint working though. unexpected error. i think i can bypass that by installing chrome or something. thanks buddy!

  • @alanquarterthane4825
    @alanquarterthane4825 2 года назад +1

    Thanks, every things is OK but no sound.

    • @SavvyNik
      @SavvyNik  2 года назад

      Great. Not sure about the sound I don't typically use it.

  • @MasterH2005
    @MasterH2005 9 месяцев назад

    Does WSL2 support GNOME?

  • @harshjain196
    @harshjain196 2 года назад

    for me, windows update its saying 21h2 what to do?

  • @oscarc.1656
    @oscarc.1656 9 месяцев назад

    The purple screen, Package configuration did not come up for me @ 10:13 in the video. I ran sudo apt install xfce4 on the ubuntu console and I got no errors. Im stuck here

    • @lebanbo55
      @lebanbo55 2 месяца назад

      Hi oscarc. I had a same issue. Did you solve it ? thanks.

    • @oscarc.1656
      @oscarc.1656 2 месяца назад

      @@lebanbo55 no sorry It did not workout for me. I kept searching online for other sources then gave up

  • @ygrittesnow1701
    @ygrittesnow1701 4 года назад +1

    Instead of loading that gui at 10:13 it just returned me to the command line.?

    • @SavvyNik
      @SavvyNik  4 года назад

      That selects what display manager you want to use and then the packages installation should continue unless you've already installed the packages before. Eventually you do end up back in the command line interface.

    • @ygrittesnow1701
      @ygrittesnow1701 4 года назад +1

      @@SavvyNik I never got the gui menu that was depicted at 10:13. I did however get the xfce open.

    • @SavvyNik
      @SavvyNik  4 года назад

      @@ygrittesnow1701 Maybe you didn't have one already defaulted? Interesting, but glad you got XFCE working.

  • @jahanzaibahmad2212
    @jahanzaibahmad2212 3 года назад

    Thanks for your nice turotial. After "startxfce4". The VcXsrv Server - Display is still blank and I am getting follwing message:
    /usr/bin/startxfce4: X server already running on display 172.22.0.1:0
    xrdb: Connection timed out
    xrdb: Can't open display '172.22.0.1:0'
    Unable to init server: Could not connect: Connection refused
    xfce4-session: Cannot open display: .
    Type 'xfce4-session --help' for usage.

    • @saurabhnigam8288
      @saurabhnigam8288 Год назад

      Hi, even i face the same issue. Are you able to resolve it. If so please share the steps
      @SavvyNik, please can you advise what needs to be done here

  • @catlolxd
    @catlolxd Год назад

    thats wild

  • @Franseven
    @Franseven 3 года назад +1

    is it possible to improve the performance of the gui? i get some trails like there was lack of video memory allocated, better than remote desktop for sure but still far from native

    • @SavvyNik
      @SavvyNik  3 года назад

      Not really.. you could try it in a Virtual Machine if you wanted better performance, but then it's not integrated with your native windows env.

    • @Franseven
      @Franseven 3 года назад

      @@SavvyNik oh.. btw after setting up the xfce4 setup ect. The normal gui pop up doesn't work anymore, is there a way to have both? Launch the server to get the full desktop but also have the pop up gui? Thanks

    • @SavvyNik
      @SavvyNik  3 года назад

      Not that I'm aware of.

  • @1.618.
    @1.618. 3 года назад +1

    How about LinuxLite5.2 OS in WSL?

    • @SavvyNik
      @SavvyNik  3 года назад

      It's not currently supported.

  • @draygoes
    @draygoes 3 года назад

    Hey, if you see this, I badly need help.
    Every time my system is rebooted and I load ubuntu, the nameserver address changes. Obviously this doesn't work with your setup as I need that IP to not change.
    Do you have any commands for this?
    Again, the Name Server Address changes every restart and I would like for it to not do that.
    Please note that I am using MATE desktop environment with Ubuntu.
    Thanks for your time.

    • @SavvyNik
      @SavvyNik  3 года назад

      edit the /etc/netplan/* config files. Look at setting a static ip and just force the DNS to something. Not sure why it's changing every time though that doesn't sound right. ruclips.net/video/NjmcUYLmhj0/видео.html

  • @suhailanjumabdurraheemsayy7639
    @suhailanjumabdurraheemsayy7639 4 года назад +1

    Follow all steps. But could not get the black screen and later part done

    • @SavvyNik
      @SavvyNik  4 года назад +1

      Were you at least able to get the command line interface to work?

    • @suhailanjumabdurraheemsayy7639
      @suhailanjumabdurraheemsayy7639 4 года назад +1

      @@SavvyNik all the earlier steps. That is installing xfce4 then that graphics default. Also saving nano editor file. Only the last two things i.e. black screen and final step to get gui is not working.

    • @SavvyNik
      @SavvyNik  4 года назад +1

      @@suhailanjumabdurraheemsayy7639 did you make sure to put the -ac flag inside of vcxsrv?

    • @suhailanjumabdurraheemsayy7639
      @suhailanjumabdurraheemsayy7639 4 года назад

      @@SavvyNik yes sir. I put -ac as well.

    • @suhailanjumabdurraheemsayy7639
      @suhailanjumabdurraheemsayy7639 4 года назад +1

      @@SavvyNik finally done. I was typing start xfce4 instead of startxfce4 without space. Finally Done. Thanks a lot.

  • @MyTryLin
    @MyTryLin 3 года назад

    Installing, this may take a few minutes...
    WslRegisterDistribution failed with error: 0x80370102
    Error: 0x80370102
    LxssManager
    Error: 5
    = =

    • @SavvyNik
      @SavvyNik  3 года назад

      Ouch.. seems like Windows has failed you lol

  • @hafizhalfiansyah6182
    @hafizhalfiansyah6182 3 года назад

    Hi sir, I want to ask, I'm using a Tigger vnc, don't use a rich vnc in the video, is that possible ??

    • @SavvyNik
      @SavvyNik  3 года назад

      Not sure haven't used it

  • @Para-KGB
    @Para-KGB 3 года назад +1

    didnt work black screen :c

    • @SavvyNik
      @SavvyNik  3 года назад +1

      Here's another method - ruclips.net/video/5EgV91-f1co/видео.html

  • @circleubuntu
    @circleubuntu 2 года назад +1

    Thanks