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

แชร์
ฝัง
  • เผยแพร่เมื่อ 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 TH-camrs
    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

ความคิดเห็น • 290

  • @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 7 หลายเดือนก่อน

      this comment save me.

    • @maryamsh4536
      @maryamsh4536 4 หลายเดือนก่อน

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

    • @GANGSTA_CHUROOO
      @GANGSTA_CHUROOO 4 หลายเดือนก่อน

      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!

  • @adnanrasheed5494
    @adnanrasheed5494 5 หลายเดือนก่อน +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  5 หลายเดือนก่อน

      Glad it helped!

  • @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

  • @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.

  • @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 =)

  • @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.

  • @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..

  • @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

  • @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 =)

  • @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 หลายเดือนก่อน

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

  • @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!

  • @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

  • @kamkam_99
    @kamkam_99 3 ปีที่แล้ว +1

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

  • @imaprogrammer6154
    @imaprogrammer6154 3 ปีที่แล้ว +1

    Thank you very much for the nice explanation!

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว

      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 =)

  • @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 6 หลายเดือนก่อน

      I had the same issue. It stayed at the terminal

  • @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

  • @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

  • @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 ปีที่แล้ว

      I am also facing same problem

  • @johnmcgiv1
    @johnmcgiv1 2 ปีที่แล้ว +1

    Excellent presentation.

    • @SavvyNik
      @SavvyNik  2 ปีที่แล้ว

      Glad you liked it!

  • @wolfzert
    @wolfzert ปีที่แล้ว +2

    Excelente, me ayudo mucho tu tuto! :D

  • @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 =)

  • @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).

  • @chris122380
    @chris122380 3 ปีที่แล้ว +1

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

  • @yumyum3266
    @yumyum3266 4 ปีที่แล้ว +3

    gonna try this out 😍😍😍😍

    • @SavvyNik
      @SavvyNik  4 ปีที่แล้ว

      Have fun =D

  • @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.

  • @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. :)

  • @imsangimchen2900
    @imsangimchen2900 3 ปีที่แล้ว +2

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

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว +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 3 ปีที่แล้ว +1

      @@SavvyNik Thanks man. Really appreciate it.

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว +1

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

    • @imsangimchen2900
      @imsangimchen2900 3 ปีที่แล้ว +1

      @@SavvyNik consider it done :)

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว

      @@imsangimchen2900 Awesome ^^

  • @aningako
    @aningako 4 ปีที่แล้ว +2

    thank you for sharing.

    • @SavvyNik
      @SavvyNik  4 ปีที่แล้ว

      No problem Christian =)

  • @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

  • @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 th-cam.com/video/nKCe9UE-quA/w-d-xo.html
      Here it is.... Ubuntu.

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว

      @@jonathanmoore5619 Thanks for sharing this!

  • @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.

  • @misten61pj56
    @misten61pj56 6 หลายเดือนก่อน

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

  • @philiptan9369
    @philiptan9369 2 ปีที่แล้ว +1

    thanks, great video

    • @SavvyNik
      @SavvyNik  2 ปีที่แล้ว

      Glad you liked it! You're welcome.

  • @metehanzor7898
    @metehanzor7898 2 ปีที่แล้ว

    I appreciate for the tutorial :)

    • @SavvyNik
      @SavvyNik  2 ปีที่แล้ว

      No problem!

  • @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

  • @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.

  • @scooterdude17
    @scooterdude17 6 หลายเดือนก่อน

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

  • @helgeapps
    @helgeapps 2 ปีที่แล้ว +1

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

    • @helgeapps
      @helgeapps 2 ปีที่แล้ว

      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

  • @Inv4d3rSum0
    @Inv4d3rSum0 ปีที่แล้ว

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

  • @roiskelappa5597
    @roiskelappa5597 ปีที่แล้ว

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

  • @vaiwalker
    @vaiwalker 2 ปีที่แล้ว

    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!

  • @nsxtogo6044
    @nsxtogo6044 3 ปีที่แล้ว

    awesome, Thank you very much.

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว

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

  • @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

  • @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.

  • @oscarc.1656
    @oscarc.1656 8 หลายเดือนก่อน

    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 หลายเดือนก่อน

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

    • @oscarc.1656
      @oscarc.1656 หลายเดือนก่อน

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

  • @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.

  • @chinnitalks363
    @chinnitalks363 3 ปีที่แล้ว +1

    this is really good video

  • @gokulraj872
    @gokulraj872 3 ปีที่แล้ว

    Brother plz make video to install ubuntu desktop on windows 10

  • @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.

  • @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.

  • @kabiawuabdulwaduud4204
    @kabiawuabdulwaduud4204 2 ปีที่แล้ว

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

  • @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

  • @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.

  • @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.

  • @ea_stus
    @ea_stus 2 ปีที่แล้ว +1

    Nice!

  • @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?

  • @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

  • @NomadYeldarb3303
    @NomadYeldarb3303 ปีที่แล้ว +1

    well done

  • @g585555
    @g585555 ปีที่แล้ว

    感謝你的教學~

  • @mohammadhassanpour9330
    @mohammadhassanpour9330 3 ปีที่แล้ว +1

    Web browser is not working it gives an error

  • @crystalwalker3430
    @crystalwalker3430 2 ปีที่แล้ว +1

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

    • @SavvyNik
      @SavvyNik  2 ปีที่แล้ว

      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.

  • @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!

  • @mitch_the_-itch
    @mitch_the_-itch ปีที่แล้ว

    If you want a GUI XFCE desktop for RDP in Ubuntu 22.04 do the following:
    sudo apt install dbus-x11
    sudo apt install -y xrdp xfce4 xfce4-goodies
    sudo /etc/init.d/xrdp start
    sudo nano /etc/xrdp/xrdp.ini (change rdp port away from 3389 save file)
    sudo /etc/init.d/xrdp restart
    sudo /etc/init.d/xrdp start
    echo "sudo /etc/init.d/xrdp start > /dev/null" >> ~/.bashrc (to auto run xrdp at start)

  • @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.

  • @colinfousek4668
    @colinfousek4668 3 ปีที่แล้ว

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

  • @prashastipandey1804
    @prashastipandey1804 ปีที่แล้ว

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

  • @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.

  • @zakiwafiy4461
    @zakiwafiy4461 ปีที่แล้ว

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

  • @3DBricksrevival
    @3DBricksrevival ปีที่แล้ว

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

  • @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.

  • @farazsalehi9034
    @farazsalehi9034 2 ปีที่แล้ว

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

  • @circleubuntu
    @circleubuntu 2 ปีที่แล้ว +1

    Thanks

    • @SavvyNik
      @SavvyNik  2 ปีที่แล้ว

      You're welcome!

  • @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

  • @catlolxd
    @catlolxd ปีที่แล้ว

    thats wild

  • @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

  • @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.

  • @ashutoshpandey8107
    @ashutoshpandey8107 3 ปีที่แล้ว

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

  • @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

  • @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

  • @ygrittesnow1701
    @ygrittesnow1701 3 ปีที่แล้ว +1

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

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว

      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 3 ปีที่แล้ว +1

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

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว

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

  • @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?

  • @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.

  • @harshjain196
    @harshjain196 2 ปีที่แล้ว

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

  • @rithvikkona8922
    @rithvikkona8922 3 ปีที่แล้ว +1

    sudo apt-get install kubuntu-desktop is for kde envornment because kde makes me go *Y E S*

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว

      How did that work out?

  • @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

  • @urugari6357
    @urugari6357 4 ปีที่แล้ว +1

    hello, i need help :C im get this after i open ubuntu 20.04 LTS :Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.

    • @SavvyNik
      @SavvyNik  4 ปีที่แล้ว +1

      Seems like you're missing a feature? Make sure you have WSL and Virtual Machine selected in your Windows features list. Other than that look up the specific error. You might also want to make sure you have VT-x / AMD-v (virtualization) enabled in your BIOs.

    • @urugari6357
      @urugari6357 4 ปีที่แล้ว +1

      thank you for the reply ill make sure to check it out 🙏

    • @SavvyNik
      @SavvyNik  4 ปีที่แล้ว +1

      @@urugari6357 no problem!

    • @urugari6357
      @urugari6357 4 ปีที่แล้ว +1

      @@SavvyNik Hey SavvyNik, i am having another problem now its says
      /usr/bin/startxfce4: X server already running on display :0
      xrdb: Connection timed out
      xrdb: Can't open display '192.168.128.1:0'
      Unable to init server: Could not connect: Connection refused
      xfce4-session: Cannot open display: .
      Type 'xfce4-session --help' for usage. i used the following command that you have provided but it isn't working

    • @SavvyNik
      @SavvyNik  4 ปีที่แล้ว +1

      @@urugari6357 hmm the pinned command didn't work for you? export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0

  • @suhailanjumabdurraheemsayy7639
    @suhailanjumabdurraheemsayy7639 3 ปีที่แล้ว +1

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

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว +1

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

    • @suhailanjumabdurraheemsayy7639
      @suhailanjumabdurraheemsayy7639 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

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

    • @suhailanjumabdurraheemsayy7639
      @suhailanjumabdurraheemsayy7639 3 ปีที่แล้ว

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

    • @suhailanjumabdurraheemsayy7639
      @suhailanjumabdurraheemsayy7639 3 ปีที่แล้ว +1

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

  • @thobekasithole5108
    @thobekasithole5108 3 ปีที่แล้ว +1

    Hi, this is a really great video. However, could you please assist. I did all the steps and in the end after typing "startxfce4" it says /usr/bin/startxfce4: X server already running on display 172.18.208.1:0 and nothing happens after that,

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว +1

      One of the comments in the comments section said to make sure to add vcxsrv into your firewall settings.
      For anyone facing issues:
      1) Go to start and type "Allow an app through windows firewall"
      2) Add VSXSRV application (C:\Program Files\VcXsrv\vcxsrv.exe)
      Otherwise you can try the pinned comment.

    • @indepmo
      @indepmo 3 ปีที่แล้ว +6

      You know what helped me? Using my local IPv4 address (mine was 192.168.0.11) instead of the using the nameserver address.
      In Power Shell:
      PS C:\Users\me> ipconfig
      Ethernet adapter Ethernet 4:
      Connection-specific DNS Suffix . :
      IPv4 Address. . . . . . . . . . . : 192.168.0.11
      Subnet Mask . . . . . . . . . . . : 255.255.255.0
      Default Gateway . . . . . . . . . : 192.168.0.1

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว +1

      @@indepmo Thanks for sharing.

    • @indepmo
      @indepmo 3 ปีที่แล้ว +1

      @@SavvyNik if only I could get pulse audio to work... This project has been looming for days.

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว

      @@indepmo yeah that's a mess lol wish you the best xD

  • @1.618.
    @1.618. 3 ปีที่แล้ว +1

    How about LinuxLite5.2 OS in WSL?

    • @SavvyNik
      @SavvyNik  3 ปีที่แล้ว

      It's not currently supported.

  • @wany11
    @wany11 11 หลายเดือนก่อน

    i get a segmentation fault error any help ?

  • @michaelmusson1730
    @michaelmusson1730 3 ปีที่แล้ว

    in case sudo apt update fails : do-release-upgrade