Gnome 3 on bash on Ubuntu on Windows












2














Is it possible to replace explorer.exe with Gnome3 on Windows10's Linux Subsystem? I've seen tutorials with Cgywin, but I was wondering if some one has gotten it to use WSL?



I ran into problems with



DISPLAY=localhost:0









share|improve this question
























  • It's an intriguing idea, so I followed these instructions, and I have been able to run a number of GUI applications (including nautilus) using xming, but I haven't so far managed to get the Gnome / Nautilus desktop going. I suggest you try the Nautilus file manager to see if you like it before trying to go further. It's a bit like Wine under Linux: a lot of things work surprisingly well, but it doesn't feel 100% reliable.
    – AFH
    Nov 8 '16 at 1:45










  • I'm a huge fan of Gnome3 + linux. I use it on my laptop daily I want a Desktop version but still running windows kernel due to software needs.
    – Lightly Salted
    Dec 5 '16 at 23:57










  • I've used Ubuntu for years, but I started to go off it when they tried to foist Unity desktop on us, with attempts to restore Gnome classic only partly successful, but Ubuntu Mate has been a good solution and I'm now very happy with it. However, I've not been able to get either Mate or Gnome running under WLS, though Xfce4 works well, as per Owen Tourlamain's answer: it's not a bad desktop environment, and I quite like the way it integrates into Windows 10. I'll let you know if I get any further with Mate or Gnome.
    – AFH
    Dec 6 '16 at 2:17










  • Further update: I've upgraded WSL to 16.04.1, to bring it into line with my other systems. Individual GUI applications still work, unlike any of the desktop environments: xfce4 runs, but the desktop is invisible, whether the X server is in single or multiple window mode. The upgrade was straightforward, although I needed these patches, with the additional library mirrors.kernel.org/ubuntu/pool/main/p/procps/… to get procps to install.
    – AFH
    Dec 11 '16 at 16:12
















2














Is it possible to replace explorer.exe with Gnome3 on Windows10's Linux Subsystem? I've seen tutorials with Cgywin, but I was wondering if some one has gotten it to use WSL?



I ran into problems with



DISPLAY=localhost:0









share|improve this question
























  • It's an intriguing idea, so I followed these instructions, and I have been able to run a number of GUI applications (including nautilus) using xming, but I haven't so far managed to get the Gnome / Nautilus desktop going. I suggest you try the Nautilus file manager to see if you like it before trying to go further. It's a bit like Wine under Linux: a lot of things work surprisingly well, but it doesn't feel 100% reliable.
    – AFH
    Nov 8 '16 at 1:45










  • I'm a huge fan of Gnome3 + linux. I use it on my laptop daily I want a Desktop version but still running windows kernel due to software needs.
    – Lightly Salted
    Dec 5 '16 at 23:57










  • I've used Ubuntu for years, but I started to go off it when they tried to foist Unity desktop on us, with attempts to restore Gnome classic only partly successful, but Ubuntu Mate has been a good solution and I'm now very happy with it. However, I've not been able to get either Mate or Gnome running under WLS, though Xfce4 works well, as per Owen Tourlamain's answer: it's not a bad desktop environment, and I quite like the way it integrates into Windows 10. I'll let you know if I get any further with Mate or Gnome.
    – AFH
    Dec 6 '16 at 2:17










  • Further update: I've upgraded WSL to 16.04.1, to bring it into line with my other systems. Individual GUI applications still work, unlike any of the desktop environments: xfce4 runs, but the desktop is invisible, whether the X server is in single or multiple window mode. The upgrade was straightforward, although I needed these patches, with the additional library mirrors.kernel.org/ubuntu/pool/main/p/procps/… to get procps to install.
    – AFH
    Dec 11 '16 at 16:12














2












2








2


1





Is it possible to replace explorer.exe with Gnome3 on Windows10's Linux Subsystem? I've seen tutorials with Cgywin, but I was wondering if some one has gotten it to use WSL?



I ran into problems with



DISPLAY=localhost:0









share|improve this question















Is it possible to replace explorer.exe with Gnome3 on Windows10's Linux Subsystem? I've seen tutorials with Cgywin, but I was wondering if some one has gotten it to use WSL?



I ran into problems with



DISPLAY=localhost:0






ubuntu windows-10 windows-subsystem-for-linux gnome-shell






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 6 '16 at 20:35









fixer1234

17.9k144681




17.9k144681










asked Nov 6 '16 at 1:42









Lightly Salted

5932625




5932625












  • It's an intriguing idea, so I followed these instructions, and I have been able to run a number of GUI applications (including nautilus) using xming, but I haven't so far managed to get the Gnome / Nautilus desktop going. I suggest you try the Nautilus file manager to see if you like it before trying to go further. It's a bit like Wine under Linux: a lot of things work surprisingly well, but it doesn't feel 100% reliable.
    – AFH
    Nov 8 '16 at 1:45










  • I'm a huge fan of Gnome3 + linux. I use it on my laptop daily I want a Desktop version but still running windows kernel due to software needs.
    – Lightly Salted
    Dec 5 '16 at 23:57










  • I've used Ubuntu for years, but I started to go off it when they tried to foist Unity desktop on us, with attempts to restore Gnome classic only partly successful, but Ubuntu Mate has been a good solution and I'm now very happy with it. However, I've not been able to get either Mate or Gnome running under WLS, though Xfce4 works well, as per Owen Tourlamain's answer: it's not a bad desktop environment, and I quite like the way it integrates into Windows 10. I'll let you know if I get any further with Mate or Gnome.
    – AFH
    Dec 6 '16 at 2:17










  • Further update: I've upgraded WSL to 16.04.1, to bring it into line with my other systems. Individual GUI applications still work, unlike any of the desktop environments: xfce4 runs, but the desktop is invisible, whether the X server is in single or multiple window mode. The upgrade was straightforward, although I needed these patches, with the additional library mirrors.kernel.org/ubuntu/pool/main/p/procps/… to get procps to install.
    – AFH
    Dec 11 '16 at 16:12


















  • It's an intriguing idea, so I followed these instructions, and I have been able to run a number of GUI applications (including nautilus) using xming, but I haven't so far managed to get the Gnome / Nautilus desktop going. I suggest you try the Nautilus file manager to see if you like it before trying to go further. It's a bit like Wine under Linux: a lot of things work surprisingly well, but it doesn't feel 100% reliable.
    – AFH
    Nov 8 '16 at 1:45










  • I'm a huge fan of Gnome3 + linux. I use it on my laptop daily I want a Desktop version but still running windows kernel due to software needs.
    – Lightly Salted
    Dec 5 '16 at 23:57










  • I've used Ubuntu for years, but I started to go off it when they tried to foist Unity desktop on us, with attempts to restore Gnome classic only partly successful, but Ubuntu Mate has been a good solution and I'm now very happy with it. However, I've not been able to get either Mate or Gnome running under WLS, though Xfce4 works well, as per Owen Tourlamain's answer: it's not a bad desktop environment, and I quite like the way it integrates into Windows 10. I'll let you know if I get any further with Mate or Gnome.
    – AFH
    Dec 6 '16 at 2:17










  • Further update: I've upgraded WSL to 16.04.1, to bring it into line with my other systems. Individual GUI applications still work, unlike any of the desktop environments: xfce4 runs, but the desktop is invisible, whether the X server is in single or multiple window mode. The upgrade was straightforward, although I needed these patches, with the additional library mirrors.kernel.org/ubuntu/pool/main/p/procps/… to get procps to install.
    – AFH
    Dec 11 '16 at 16:12
















It's an intriguing idea, so I followed these instructions, and I have been able to run a number of GUI applications (including nautilus) using xming, but I haven't so far managed to get the Gnome / Nautilus desktop going. I suggest you try the Nautilus file manager to see if you like it before trying to go further. It's a bit like Wine under Linux: a lot of things work surprisingly well, but it doesn't feel 100% reliable.
– AFH
Nov 8 '16 at 1:45




It's an intriguing idea, so I followed these instructions, and I have been able to run a number of GUI applications (including nautilus) using xming, but I haven't so far managed to get the Gnome / Nautilus desktop going. I suggest you try the Nautilus file manager to see if you like it before trying to go further. It's a bit like Wine under Linux: a lot of things work surprisingly well, but it doesn't feel 100% reliable.
– AFH
Nov 8 '16 at 1:45












I'm a huge fan of Gnome3 + linux. I use it on my laptop daily I want a Desktop version but still running windows kernel due to software needs.
– Lightly Salted
Dec 5 '16 at 23:57




I'm a huge fan of Gnome3 + linux. I use it on my laptop daily I want a Desktop version but still running windows kernel due to software needs.
– Lightly Salted
Dec 5 '16 at 23:57












I've used Ubuntu for years, but I started to go off it when they tried to foist Unity desktop on us, with attempts to restore Gnome classic only partly successful, but Ubuntu Mate has been a good solution and I'm now very happy with it. However, I've not been able to get either Mate or Gnome running under WLS, though Xfce4 works well, as per Owen Tourlamain's answer: it's not a bad desktop environment, and I quite like the way it integrates into Windows 10. I'll let you know if I get any further with Mate or Gnome.
– AFH
Dec 6 '16 at 2:17




I've used Ubuntu for years, but I started to go off it when they tried to foist Unity desktop on us, with attempts to restore Gnome classic only partly successful, but Ubuntu Mate has been a good solution and I'm now very happy with it. However, I've not been able to get either Mate or Gnome running under WLS, though Xfce4 works well, as per Owen Tourlamain's answer: it's not a bad desktop environment, and I quite like the way it integrates into Windows 10. I'll let you know if I get any further with Mate or Gnome.
– AFH
Dec 6 '16 at 2:17












Further update: I've upgraded WSL to 16.04.1, to bring it into line with my other systems. Individual GUI applications still work, unlike any of the desktop environments: xfce4 runs, but the desktop is invisible, whether the X server is in single or multiple window mode. The upgrade was straightforward, although I needed these patches, with the additional library mirrors.kernel.org/ubuntu/pool/main/p/procps/… to get procps to install.
– AFH
Dec 11 '16 at 16:12




Further update: I've upgraded WSL to 16.04.1, to bring it into line with my other systems. Individual GUI applications still work, unlike any of the desktop environments: xfce4 runs, but the desktop is invisible, whether the X server is in single or multiple window mode. The upgrade was straightforward, although I needed these patches, with the additional library mirrors.kernel.org/ubuntu/pool/main/p/procps/… to get procps to install.
– AFH
Dec 11 '16 at 16:12










3 Answers
3






active

oldest

votes


















3














I've just tested Gnome 3 and it doesn't look like it will be easy to get that running, however I currently have a dual task-bar set up on my PC and my laptop, one Windows task-bar and one XFCE4. Here's how I set it up:




  • First make sure WSL is set up.

  • Next install VcXsrv on the windows side, this will be used to display the graphical output from WSL.

  • Now we need to tell WSL to point to VcXsrv, to do this run: echo "export DISPLAY=:0.0" >> ~/.bashrc This file will be read on each start up of bash.

  • there is also an issue with dbus we need to sort out, to do this just run:
    sudo sed -i 's$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$' /etc/dbus-1/session.conf in bash.

  • Lets test this works fully, fire up XLaunch (part of VcXsrv), choose "Multiple Windows", and put 0 as the display number. Click next twice then finish.

  • Run something graphical to test, try xeyes (you may need to install x11-apps first: sudo apt-get install x11-apps)

  • It worked? good, now we need to get a desktop running, I'll show the steps for XFCE4 however I have seen Unity working and I suspect LXDE should work. (I know that Cinnamon has multiple issues that seem to be similar to Gnome)

  • Run: sudo apt-get install xfce4

  • Once that's done run: xfce4-session, wait a minute and you should get a pop-up asking about panels, I'd recommend choosing the default config unless you are used to XFCE4.

  • If all this works we are nearly ready to go, feel free to position and configure your new task-bar now.

  • The next thing we need is a way to stop windows maximising underneath the new task-bar, for this I used Desktop Coral, its free but kind of annoying, you have to get a new key each six months, you get a lifetime key after a while though. If you don't want to use this then look for a program that can reserve screen space.

  • Once that is set up configure it so it reserves the same space as where your panel will live, and check that windows aren't drawing under it. When you are happy tick the transparent mode option


  • Now we need to make all this seamlessly "just work", Desktop Coral already runs on start up so that's covered. We now need a script on the windows side to get bash and XFCE4 running on start up. Fire up a text editor (notepad will do) and paste in this:



    set ws=wscript.createobject("wscript.shell")
    ws.run """C:Program FilesVcXsrvvcxsrv.exe"" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl",0
    WScript.Sleep 500
    ws.run "C:WindowsSystem32bash.exe -c 'export DISPLAY=:0.0; xfce4-session'",0


  • This starts our X Server and our desktop environment in one shot, save it as <somewhere important>/<whatever>.vbs.


  • Test this script works by quitting VcXsrv and then double clicking the script, wait a bit and your new task-bar should appear.

  • Now we need to make this run on start-up, so launch Task Scheduler, go to Action -> Create Basic Task...

  • Give your task a name, click Next then choose "When I Log On". Click Next twice, then type in or browse to your script. Click Next and finally Finish.

  • Last thing is to reboot to see if it works!


This should give you a mostly functional Linux environment within Windows, it's not prefect (might want to turn of the screensaver for one) but it does work! I haven't yet found out how to replace Explorer, I suspect this won't be possible as any programs you run from your new task-bar will appear on the Windows task-bar not the XFCE4 one.



As an aside don't be put off by XFCE4's bad looks, it is fully themeable and comes with tons of built in themes to choose from plus plenty more to download.



One final note is that this task-bar will draw on top of full screen windows, I currently use TurboTop to tun this off when I need it, not particularly elegant so keep an eye on this question for a solution.






share|improve this answer































    0














    I think it's not possible.



    explorer.exe is the Shell of Windows. explorer.exe is launched by WinLogon after successful authentication. WinLogon identifies it as shell by looking at Shell registry key here:



     HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogon


    The cygwin method you are talking about is I think this one (I could only find this ancient method with a quick search):
    https://marc.info/?l=kde-cygwin&m=103072530327420&w=2



    From what I can grasp by looking at it is that we'll just replace explorer.exe in the above specified registry key with c:cygwinbinbash --login -c startx



    That means when we log in, Windows Explorer won't launch, instead bash will and it'll start the X server (meaning KDE [or GNOME] will launch). Now, let's break down what is going to happen here.



    First, no Windows Explorer. If you ever killed all explorer.exe processes from Task Manager, you might have noticed a blank screen. If you have some applications open, it will float in the screen, even if you minimize them, because there is no explorer.exe to handle the open windows.



    Now, the bash (and, thus, GNOME) that launched is a full screen application (much like a game). It'll run just like a normal window manager, it'll browse files, have (its own) taskbar and notification area, etc. But, in the end, it's only a normal application, no different than notepad.exe (except full-screen, of course). The above link itself says something that hints at this:




    Note: if you want to run windows programs from here, on Windows 2000 you
    can press Ctrl-Shift-Esc
    which brings up the Task Manager, then go File/Run.




    Launching Task Manager will exit the full-screen mode and show Task Manager 'above' GNOME interface, rather than 'inside' it.



    Regarding logout, this is mentioned:




    Logging out from KDE doesn't actually log out, you need to close KDE in
    another way and then press Ctrl-Alt-Del
    and choose logout. Depending on your .xserverrc parameters,
    Ctrl-Alt-Backspace or Alt-F4 can be made to close
    the X server. Otherwise, you can close it from the Task manager (select
    the Cygwin task and say End Task).




    So, no doubt you'll see a GNOME interface when you log in and you might apply all the tedious hacks to launch windows applications through shortcuts, but that's not a replacement of explorer.exe.






    share|improve this answer























    • The questioner is not using Cygwin, but WSL.
      – AFH
      Nov 9 '16 at 22:37










    • With WSL too, things won't be much different. C:cygwinbinbash will be replaced by C:windowssystem32bash . But the principle will be same- having a fullscreen x server running GNOME.
      – PrashantKumar96
      Nov 10 '16 at 3:55



















    0














    By the way, all you need to do is:



    apt update && apt upgrade -y && apt install xfce4 x11-apps lightdm



    then,



    xfce4-session --display=0:0



    Just make sure you are using xming or vcxsrv or something on windows






    share|improve this answer























    • That would install xfce4, not Gnome 3 which OP requested.
      – bertieb
      Apr 15 '18 at 20:08











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1142866%2fgnome-3-on-bash-on-ubuntu-on-windows%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3














    I've just tested Gnome 3 and it doesn't look like it will be easy to get that running, however I currently have a dual task-bar set up on my PC and my laptop, one Windows task-bar and one XFCE4. Here's how I set it up:




    • First make sure WSL is set up.

    • Next install VcXsrv on the windows side, this will be used to display the graphical output from WSL.

    • Now we need to tell WSL to point to VcXsrv, to do this run: echo "export DISPLAY=:0.0" >> ~/.bashrc This file will be read on each start up of bash.

    • there is also an issue with dbus we need to sort out, to do this just run:
      sudo sed -i 's$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$' /etc/dbus-1/session.conf in bash.

    • Lets test this works fully, fire up XLaunch (part of VcXsrv), choose "Multiple Windows", and put 0 as the display number. Click next twice then finish.

    • Run something graphical to test, try xeyes (you may need to install x11-apps first: sudo apt-get install x11-apps)

    • It worked? good, now we need to get a desktop running, I'll show the steps for XFCE4 however I have seen Unity working and I suspect LXDE should work. (I know that Cinnamon has multiple issues that seem to be similar to Gnome)

    • Run: sudo apt-get install xfce4

    • Once that's done run: xfce4-session, wait a minute and you should get a pop-up asking about panels, I'd recommend choosing the default config unless you are used to XFCE4.

    • If all this works we are nearly ready to go, feel free to position and configure your new task-bar now.

    • The next thing we need is a way to stop windows maximising underneath the new task-bar, for this I used Desktop Coral, its free but kind of annoying, you have to get a new key each six months, you get a lifetime key after a while though. If you don't want to use this then look for a program that can reserve screen space.

    • Once that is set up configure it so it reserves the same space as where your panel will live, and check that windows aren't drawing under it. When you are happy tick the transparent mode option


    • Now we need to make all this seamlessly "just work", Desktop Coral already runs on start up so that's covered. We now need a script on the windows side to get bash and XFCE4 running on start up. Fire up a text editor (notepad will do) and paste in this:



      set ws=wscript.createobject("wscript.shell")
      ws.run """C:Program FilesVcXsrvvcxsrv.exe"" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl",0
      WScript.Sleep 500
      ws.run "C:WindowsSystem32bash.exe -c 'export DISPLAY=:0.0; xfce4-session'",0


    • This starts our X Server and our desktop environment in one shot, save it as <somewhere important>/<whatever>.vbs.


    • Test this script works by quitting VcXsrv and then double clicking the script, wait a bit and your new task-bar should appear.

    • Now we need to make this run on start-up, so launch Task Scheduler, go to Action -> Create Basic Task...

    • Give your task a name, click Next then choose "When I Log On". Click Next twice, then type in or browse to your script. Click Next and finally Finish.

    • Last thing is to reboot to see if it works!


    This should give you a mostly functional Linux environment within Windows, it's not prefect (might want to turn of the screensaver for one) but it does work! I haven't yet found out how to replace Explorer, I suspect this won't be possible as any programs you run from your new task-bar will appear on the Windows task-bar not the XFCE4 one.



    As an aside don't be put off by XFCE4's bad looks, it is fully themeable and comes with tons of built in themes to choose from plus plenty more to download.



    One final note is that this task-bar will draw on top of full screen windows, I currently use TurboTop to tun this off when I need it, not particularly elegant so keep an eye on this question for a solution.






    share|improve this answer




























      3














      I've just tested Gnome 3 and it doesn't look like it will be easy to get that running, however I currently have a dual task-bar set up on my PC and my laptop, one Windows task-bar and one XFCE4. Here's how I set it up:




      • First make sure WSL is set up.

      • Next install VcXsrv on the windows side, this will be used to display the graphical output from WSL.

      • Now we need to tell WSL to point to VcXsrv, to do this run: echo "export DISPLAY=:0.0" >> ~/.bashrc This file will be read on each start up of bash.

      • there is also an issue with dbus we need to sort out, to do this just run:
        sudo sed -i 's$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$' /etc/dbus-1/session.conf in bash.

      • Lets test this works fully, fire up XLaunch (part of VcXsrv), choose "Multiple Windows", and put 0 as the display number. Click next twice then finish.

      • Run something graphical to test, try xeyes (you may need to install x11-apps first: sudo apt-get install x11-apps)

      • It worked? good, now we need to get a desktop running, I'll show the steps for XFCE4 however I have seen Unity working and I suspect LXDE should work. (I know that Cinnamon has multiple issues that seem to be similar to Gnome)

      • Run: sudo apt-get install xfce4

      • Once that's done run: xfce4-session, wait a minute and you should get a pop-up asking about panels, I'd recommend choosing the default config unless you are used to XFCE4.

      • If all this works we are nearly ready to go, feel free to position and configure your new task-bar now.

      • The next thing we need is a way to stop windows maximising underneath the new task-bar, for this I used Desktop Coral, its free but kind of annoying, you have to get a new key each six months, you get a lifetime key after a while though. If you don't want to use this then look for a program that can reserve screen space.

      • Once that is set up configure it so it reserves the same space as where your panel will live, and check that windows aren't drawing under it. When you are happy tick the transparent mode option


      • Now we need to make all this seamlessly "just work", Desktop Coral already runs on start up so that's covered. We now need a script on the windows side to get bash and XFCE4 running on start up. Fire up a text editor (notepad will do) and paste in this:



        set ws=wscript.createobject("wscript.shell")
        ws.run """C:Program FilesVcXsrvvcxsrv.exe"" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl",0
        WScript.Sleep 500
        ws.run "C:WindowsSystem32bash.exe -c 'export DISPLAY=:0.0; xfce4-session'",0


      • This starts our X Server and our desktop environment in one shot, save it as <somewhere important>/<whatever>.vbs.


      • Test this script works by quitting VcXsrv and then double clicking the script, wait a bit and your new task-bar should appear.

      • Now we need to make this run on start-up, so launch Task Scheduler, go to Action -> Create Basic Task...

      • Give your task a name, click Next then choose "When I Log On". Click Next twice, then type in or browse to your script. Click Next and finally Finish.

      • Last thing is to reboot to see if it works!


      This should give you a mostly functional Linux environment within Windows, it's not prefect (might want to turn of the screensaver for one) but it does work! I haven't yet found out how to replace Explorer, I suspect this won't be possible as any programs you run from your new task-bar will appear on the Windows task-bar not the XFCE4 one.



      As an aside don't be put off by XFCE4's bad looks, it is fully themeable and comes with tons of built in themes to choose from plus plenty more to download.



      One final note is that this task-bar will draw on top of full screen windows, I currently use TurboTop to tun this off when I need it, not particularly elegant so keep an eye on this question for a solution.






      share|improve this answer


























        3












        3








        3






        I've just tested Gnome 3 and it doesn't look like it will be easy to get that running, however I currently have a dual task-bar set up on my PC and my laptop, one Windows task-bar and one XFCE4. Here's how I set it up:




        • First make sure WSL is set up.

        • Next install VcXsrv on the windows side, this will be used to display the graphical output from WSL.

        • Now we need to tell WSL to point to VcXsrv, to do this run: echo "export DISPLAY=:0.0" >> ~/.bashrc This file will be read on each start up of bash.

        • there is also an issue with dbus we need to sort out, to do this just run:
          sudo sed -i 's$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$' /etc/dbus-1/session.conf in bash.

        • Lets test this works fully, fire up XLaunch (part of VcXsrv), choose "Multiple Windows", and put 0 as the display number. Click next twice then finish.

        • Run something graphical to test, try xeyes (you may need to install x11-apps first: sudo apt-get install x11-apps)

        • It worked? good, now we need to get a desktop running, I'll show the steps for XFCE4 however I have seen Unity working and I suspect LXDE should work. (I know that Cinnamon has multiple issues that seem to be similar to Gnome)

        • Run: sudo apt-get install xfce4

        • Once that's done run: xfce4-session, wait a minute and you should get a pop-up asking about panels, I'd recommend choosing the default config unless you are used to XFCE4.

        • If all this works we are nearly ready to go, feel free to position and configure your new task-bar now.

        • The next thing we need is a way to stop windows maximising underneath the new task-bar, for this I used Desktop Coral, its free but kind of annoying, you have to get a new key each six months, you get a lifetime key after a while though. If you don't want to use this then look for a program that can reserve screen space.

        • Once that is set up configure it so it reserves the same space as where your panel will live, and check that windows aren't drawing under it. When you are happy tick the transparent mode option


        • Now we need to make all this seamlessly "just work", Desktop Coral already runs on start up so that's covered. We now need a script on the windows side to get bash and XFCE4 running on start up. Fire up a text editor (notepad will do) and paste in this:



          set ws=wscript.createobject("wscript.shell")
          ws.run """C:Program FilesVcXsrvvcxsrv.exe"" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl",0
          WScript.Sleep 500
          ws.run "C:WindowsSystem32bash.exe -c 'export DISPLAY=:0.0; xfce4-session'",0


        • This starts our X Server and our desktop environment in one shot, save it as <somewhere important>/<whatever>.vbs.


        • Test this script works by quitting VcXsrv and then double clicking the script, wait a bit and your new task-bar should appear.

        • Now we need to make this run on start-up, so launch Task Scheduler, go to Action -> Create Basic Task...

        • Give your task a name, click Next then choose "When I Log On". Click Next twice, then type in or browse to your script. Click Next and finally Finish.

        • Last thing is to reboot to see if it works!


        This should give you a mostly functional Linux environment within Windows, it's not prefect (might want to turn of the screensaver for one) but it does work! I haven't yet found out how to replace Explorer, I suspect this won't be possible as any programs you run from your new task-bar will appear on the Windows task-bar not the XFCE4 one.



        As an aside don't be put off by XFCE4's bad looks, it is fully themeable and comes with tons of built in themes to choose from plus plenty more to download.



        One final note is that this task-bar will draw on top of full screen windows, I currently use TurboTop to tun this off when I need it, not particularly elegant so keep an eye on this question for a solution.






        share|improve this answer














        I've just tested Gnome 3 and it doesn't look like it will be easy to get that running, however I currently have a dual task-bar set up on my PC and my laptop, one Windows task-bar and one XFCE4. Here's how I set it up:




        • First make sure WSL is set up.

        • Next install VcXsrv on the windows side, this will be used to display the graphical output from WSL.

        • Now we need to tell WSL to point to VcXsrv, to do this run: echo "export DISPLAY=:0.0" >> ~/.bashrc This file will be read on each start up of bash.

        • there is also an issue with dbus we need to sort out, to do this just run:
          sudo sed -i 's$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$' /etc/dbus-1/session.conf in bash.

        • Lets test this works fully, fire up XLaunch (part of VcXsrv), choose "Multiple Windows", and put 0 as the display number. Click next twice then finish.

        • Run something graphical to test, try xeyes (you may need to install x11-apps first: sudo apt-get install x11-apps)

        • It worked? good, now we need to get a desktop running, I'll show the steps for XFCE4 however I have seen Unity working and I suspect LXDE should work. (I know that Cinnamon has multiple issues that seem to be similar to Gnome)

        • Run: sudo apt-get install xfce4

        • Once that's done run: xfce4-session, wait a minute and you should get a pop-up asking about panels, I'd recommend choosing the default config unless you are used to XFCE4.

        • If all this works we are nearly ready to go, feel free to position and configure your new task-bar now.

        • The next thing we need is a way to stop windows maximising underneath the new task-bar, for this I used Desktop Coral, its free but kind of annoying, you have to get a new key each six months, you get a lifetime key after a while though. If you don't want to use this then look for a program that can reserve screen space.

        • Once that is set up configure it so it reserves the same space as where your panel will live, and check that windows aren't drawing under it. When you are happy tick the transparent mode option


        • Now we need to make all this seamlessly "just work", Desktop Coral already runs on start up so that's covered. We now need a script on the windows side to get bash and XFCE4 running on start up. Fire up a text editor (notepad will do) and paste in this:



          set ws=wscript.createobject("wscript.shell")
          ws.run """C:Program FilesVcXsrvvcxsrv.exe"" :0 -ac -terminate -lesspointer -multiwindow -clipboard -wgl",0
          WScript.Sleep 500
          ws.run "C:WindowsSystem32bash.exe -c 'export DISPLAY=:0.0; xfce4-session'",0


        • This starts our X Server and our desktop environment in one shot, save it as <somewhere important>/<whatever>.vbs.


        • Test this script works by quitting VcXsrv and then double clicking the script, wait a bit and your new task-bar should appear.

        • Now we need to make this run on start-up, so launch Task Scheduler, go to Action -> Create Basic Task...

        • Give your task a name, click Next then choose "When I Log On". Click Next twice, then type in or browse to your script. Click Next and finally Finish.

        • Last thing is to reboot to see if it works!


        This should give you a mostly functional Linux environment within Windows, it's not prefect (might want to turn of the screensaver for one) but it does work! I haven't yet found out how to replace Explorer, I suspect this won't be possible as any programs you run from your new task-bar will appear on the Windows task-bar not the XFCE4 one.



        As an aside don't be put off by XFCE4's bad looks, it is fully themeable and comes with tons of built in themes to choose from plus plenty more to download.



        One final note is that this task-bar will draw on top of full screen windows, I currently use TurboTop to tun this off when I need it, not particularly elegant so keep an eye on this question for a solution.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 9 '16 at 0:01

























        answered Nov 7 '16 at 1:38









        Owen Tourlamain

        1988




        1988

























            0














            I think it's not possible.



            explorer.exe is the Shell of Windows. explorer.exe is launched by WinLogon after successful authentication. WinLogon identifies it as shell by looking at Shell registry key here:



             HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogon


            The cygwin method you are talking about is I think this one (I could only find this ancient method with a quick search):
            https://marc.info/?l=kde-cygwin&m=103072530327420&w=2



            From what I can grasp by looking at it is that we'll just replace explorer.exe in the above specified registry key with c:cygwinbinbash --login -c startx



            That means when we log in, Windows Explorer won't launch, instead bash will and it'll start the X server (meaning KDE [or GNOME] will launch). Now, let's break down what is going to happen here.



            First, no Windows Explorer. If you ever killed all explorer.exe processes from Task Manager, you might have noticed a blank screen. If you have some applications open, it will float in the screen, even if you minimize them, because there is no explorer.exe to handle the open windows.



            Now, the bash (and, thus, GNOME) that launched is a full screen application (much like a game). It'll run just like a normal window manager, it'll browse files, have (its own) taskbar and notification area, etc. But, in the end, it's only a normal application, no different than notepad.exe (except full-screen, of course). The above link itself says something that hints at this:




            Note: if you want to run windows programs from here, on Windows 2000 you
            can press Ctrl-Shift-Esc
            which brings up the Task Manager, then go File/Run.




            Launching Task Manager will exit the full-screen mode and show Task Manager 'above' GNOME interface, rather than 'inside' it.



            Regarding logout, this is mentioned:




            Logging out from KDE doesn't actually log out, you need to close KDE in
            another way and then press Ctrl-Alt-Del
            and choose logout. Depending on your .xserverrc parameters,
            Ctrl-Alt-Backspace or Alt-F4 can be made to close
            the X server. Otherwise, you can close it from the Task manager (select
            the Cygwin task and say End Task).




            So, no doubt you'll see a GNOME interface when you log in and you might apply all the tedious hacks to launch windows applications through shortcuts, but that's not a replacement of explorer.exe.






            share|improve this answer























            • The questioner is not using Cygwin, but WSL.
              – AFH
              Nov 9 '16 at 22:37










            • With WSL too, things won't be much different. C:cygwinbinbash will be replaced by C:windowssystem32bash . But the principle will be same- having a fullscreen x server running GNOME.
              – PrashantKumar96
              Nov 10 '16 at 3:55
















            0














            I think it's not possible.



            explorer.exe is the Shell of Windows. explorer.exe is launched by WinLogon after successful authentication. WinLogon identifies it as shell by looking at Shell registry key here:



             HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogon


            The cygwin method you are talking about is I think this one (I could only find this ancient method with a quick search):
            https://marc.info/?l=kde-cygwin&m=103072530327420&w=2



            From what I can grasp by looking at it is that we'll just replace explorer.exe in the above specified registry key with c:cygwinbinbash --login -c startx



            That means when we log in, Windows Explorer won't launch, instead bash will and it'll start the X server (meaning KDE [or GNOME] will launch). Now, let's break down what is going to happen here.



            First, no Windows Explorer. If you ever killed all explorer.exe processes from Task Manager, you might have noticed a blank screen. If you have some applications open, it will float in the screen, even if you minimize them, because there is no explorer.exe to handle the open windows.



            Now, the bash (and, thus, GNOME) that launched is a full screen application (much like a game). It'll run just like a normal window manager, it'll browse files, have (its own) taskbar and notification area, etc. But, in the end, it's only a normal application, no different than notepad.exe (except full-screen, of course). The above link itself says something that hints at this:




            Note: if you want to run windows programs from here, on Windows 2000 you
            can press Ctrl-Shift-Esc
            which brings up the Task Manager, then go File/Run.




            Launching Task Manager will exit the full-screen mode and show Task Manager 'above' GNOME interface, rather than 'inside' it.



            Regarding logout, this is mentioned:




            Logging out from KDE doesn't actually log out, you need to close KDE in
            another way and then press Ctrl-Alt-Del
            and choose logout. Depending on your .xserverrc parameters,
            Ctrl-Alt-Backspace or Alt-F4 can be made to close
            the X server. Otherwise, you can close it from the Task manager (select
            the Cygwin task and say End Task).




            So, no doubt you'll see a GNOME interface when you log in and you might apply all the tedious hacks to launch windows applications through shortcuts, but that's not a replacement of explorer.exe.






            share|improve this answer























            • The questioner is not using Cygwin, but WSL.
              – AFH
              Nov 9 '16 at 22:37










            • With WSL too, things won't be much different. C:cygwinbinbash will be replaced by C:windowssystem32bash . But the principle will be same- having a fullscreen x server running GNOME.
              – PrashantKumar96
              Nov 10 '16 at 3:55














            0












            0








            0






            I think it's not possible.



            explorer.exe is the Shell of Windows. explorer.exe is launched by WinLogon after successful authentication. WinLogon identifies it as shell by looking at Shell registry key here:



             HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogon


            The cygwin method you are talking about is I think this one (I could only find this ancient method with a quick search):
            https://marc.info/?l=kde-cygwin&m=103072530327420&w=2



            From what I can grasp by looking at it is that we'll just replace explorer.exe in the above specified registry key with c:cygwinbinbash --login -c startx



            That means when we log in, Windows Explorer won't launch, instead bash will and it'll start the X server (meaning KDE [or GNOME] will launch). Now, let's break down what is going to happen here.



            First, no Windows Explorer. If you ever killed all explorer.exe processes from Task Manager, you might have noticed a blank screen. If you have some applications open, it will float in the screen, even if you minimize them, because there is no explorer.exe to handle the open windows.



            Now, the bash (and, thus, GNOME) that launched is a full screen application (much like a game). It'll run just like a normal window manager, it'll browse files, have (its own) taskbar and notification area, etc. But, in the end, it's only a normal application, no different than notepad.exe (except full-screen, of course). The above link itself says something that hints at this:




            Note: if you want to run windows programs from here, on Windows 2000 you
            can press Ctrl-Shift-Esc
            which brings up the Task Manager, then go File/Run.




            Launching Task Manager will exit the full-screen mode and show Task Manager 'above' GNOME interface, rather than 'inside' it.



            Regarding logout, this is mentioned:




            Logging out from KDE doesn't actually log out, you need to close KDE in
            another way and then press Ctrl-Alt-Del
            and choose logout. Depending on your .xserverrc parameters,
            Ctrl-Alt-Backspace or Alt-F4 can be made to close
            the X server. Otherwise, you can close it from the Task manager (select
            the Cygwin task and say End Task).




            So, no doubt you'll see a GNOME interface when you log in and you might apply all the tedious hacks to launch windows applications through shortcuts, but that's not a replacement of explorer.exe.






            share|improve this answer














            I think it's not possible.



            explorer.exe is the Shell of Windows. explorer.exe is launched by WinLogon after successful authentication. WinLogon identifies it as shell by looking at Shell registry key here:



             HKLMSOFTWAREMicrosoftWindows NTCurrentVersionWinlogon


            The cygwin method you are talking about is I think this one (I could only find this ancient method with a quick search):
            https://marc.info/?l=kde-cygwin&m=103072530327420&w=2



            From what I can grasp by looking at it is that we'll just replace explorer.exe in the above specified registry key with c:cygwinbinbash --login -c startx



            That means when we log in, Windows Explorer won't launch, instead bash will and it'll start the X server (meaning KDE [or GNOME] will launch). Now, let's break down what is going to happen here.



            First, no Windows Explorer. If you ever killed all explorer.exe processes from Task Manager, you might have noticed a blank screen. If you have some applications open, it will float in the screen, even if you minimize them, because there is no explorer.exe to handle the open windows.



            Now, the bash (and, thus, GNOME) that launched is a full screen application (much like a game). It'll run just like a normal window manager, it'll browse files, have (its own) taskbar and notification area, etc. But, in the end, it's only a normal application, no different than notepad.exe (except full-screen, of course). The above link itself says something that hints at this:




            Note: if you want to run windows programs from here, on Windows 2000 you
            can press Ctrl-Shift-Esc
            which brings up the Task Manager, then go File/Run.




            Launching Task Manager will exit the full-screen mode and show Task Manager 'above' GNOME interface, rather than 'inside' it.



            Regarding logout, this is mentioned:




            Logging out from KDE doesn't actually log out, you need to close KDE in
            another way and then press Ctrl-Alt-Del
            and choose logout. Depending on your .xserverrc parameters,
            Ctrl-Alt-Backspace or Alt-F4 can be made to close
            the X server. Otherwise, you can close it from the Task manager (select
            the Cygwin task and say End Task).




            So, no doubt you'll see a GNOME interface when you log in and you might apply all the tedious hacks to launch windows applications through shortcuts, but that's not a replacement of explorer.exe.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 9 '16 at 14:00

























            answered Nov 9 '16 at 13:51









            PrashantKumar96

            1364




            1364












            • The questioner is not using Cygwin, but WSL.
              – AFH
              Nov 9 '16 at 22:37










            • With WSL too, things won't be much different. C:cygwinbinbash will be replaced by C:windowssystem32bash . But the principle will be same- having a fullscreen x server running GNOME.
              – PrashantKumar96
              Nov 10 '16 at 3:55


















            • The questioner is not using Cygwin, but WSL.
              – AFH
              Nov 9 '16 at 22:37










            • With WSL too, things won't be much different. C:cygwinbinbash will be replaced by C:windowssystem32bash . But the principle will be same- having a fullscreen x server running GNOME.
              – PrashantKumar96
              Nov 10 '16 at 3:55
















            The questioner is not using Cygwin, but WSL.
            – AFH
            Nov 9 '16 at 22:37




            The questioner is not using Cygwin, but WSL.
            – AFH
            Nov 9 '16 at 22:37












            With WSL too, things won't be much different. C:cygwinbinbash will be replaced by C:windowssystem32bash . But the principle will be same- having a fullscreen x server running GNOME.
            – PrashantKumar96
            Nov 10 '16 at 3:55




            With WSL too, things won't be much different. C:cygwinbinbash will be replaced by C:windowssystem32bash . But the principle will be same- having a fullscreen x server running GNOME.
            – PrashantKumar96
            Nov 10 '16 at 3:55











            0














            By the way, all you need to do is:



            apt update && apt upgrade -y && apt install xfce4 x11-apps lightdm



            then,



            xfce4-session --display=0:0



            Just make sure you are using xming or vcxsrv or something on windows






            share|improve this answer























            • That would install xfce4, not Gnome 3 which OP requested.
              – bertieb
              Apr 15 '18 at 20:08
















            0














            By the way, all you need to do is:



            apt update && apt upgrade -y && apt install xfce4 x11-apps lightdm



            then,



            xfce4-session --display=0:0



            Just make sure you are using xming or vcxsrv or something on windows






            share|improve this answer























            • That would install xfce4, not Gnome 3 which OP requested.
              – bertieb
              Apr 15 '18 at 20:08














            0












            0








            0






            By the way, all you need to do is:



            apt update && apt upgrade -y && apt install xfce4 x11-apps lightdm



            then,



            xfce4-session --display=0:0



            Just make sure you are using xming or vcxsrv or something on windows






            share|improve this answer














            By the way, all you need to do is:



            apt update && apt upgrade -y && apt install xfce4 x11-apps lightdm



            then,



            xfce4-session --display=0:0



            Just make sure you are using xming or vcxsrv or something on windows







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 18 '18 at 22:15









            guaka

            1,27911431




            1,27911431










            answered Apr 15 '18 at 19:34









            Ricky Neff

            353




            353












            • That would install xfce4, not Gnome 3 which OP requested.
              – bertieb
              Apr 15 '18 at 20:08


















            • That would install xfce4, not Gnome 3 which OP requested.
              – bertieb
              Apr 15 '18 at 20:08
















            That would install xfce4, not Gnome 3 which OP requested.
            – bertieb
            Apr 15 '18 at 20:08




            That would install xfce4, not Gnome 3 which OP requested.
            – bertieb
            Apr 15 '18 at 20:08


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1142866%2fgnome-3-on-bash-on-ubuntu-on-windows%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido