Installing and Running BASH on Windows 10 (Build 14316)

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 5,286
    Win 10 Pro x64
    Thread Starter
       #21

    I also used "Bash on Ubuntu" window and still okay. I just finished updating both Pi's..


    Installing and Running BASH on Windows 10 (Build 14316)-2016_04_08_23_31_531.png
      My Computer


  2. Posts : 3,257
    Windows 10 Pro
       #22

    Rocky said:
    I have been using Ubuntu BASH on Windows 10 for a couple of days now, and here are a couple of real quick observations. Contrary to what the OP said, there is no need for SUDO on BASH in Windows 10, when you open BASH you are already root. This is wrong and goes against everything that Ubuntu and Linux in general stands for.
    Remember this is a beta... and root is likely perfectly fine given that it's a virtual environment...

    Rocky said:
    Also, I have used this app to try a lot of different things and some commands just don't work. Like

    top

    it does not do anything in BASH on Windows 10 but it is a handy command in an actual Ubuntu installation.
    I imagine that most tools that deal with processes and what not would not work, or it might be because the tty is not configured in a way that top likes. Remember, it's a beta.

    Rocky said:
    I think that this app is a joke and I can't see any practical use for it, but I am still playing with it to come to grips with its function.
    There are many valid uses I can think of. Windows has had a Subsystem for Unix for years to allow you to run posix commands under Windows. Imagine running perl scripts or python.. without having to rewrite them for Windows...
      My Computer


  3. Posts : 11,247
    Windows / Linux : Arch Linux
       #23

    Hi there
    Can you install services on it -- I'd like to see if the excellent MPD (Music Player Daemon) works -- be great if I could run that from a windows console.

    However installing XRDP on the Linux host and simply accessing the Linux host directly via Windows RDP seems to negate the whole point of Bash on Windows - so is it a really useful function or will it be just a Toy.

    What would be nice if you had a whole Linux Virtualized environment built in including a GUI -- Linux can be made really small so the overhead shouldn't be too much at all.

    Cheers
    jimbo
      My Computer


  4. Posts : 15,024
    Windows 10 IoT
       #24

    jimbo45 said:
    Hi there
    Can you install services on it -- I'd like to see if the excellent MPD (Music Player Daemon) works -- be great if I could run that from a windows console.

    However installing XRDP on the Linux host and simply accessing the Linux host directly via Windows RDP seems to negate the whole point of Bash on Windows - so is it a really useful function or will it be just a Toy.

    What would be nice if you had a whole Linux Virtualized environment built in including a GUI -- Linux can be made really small so the overhead shouldn't be too much at all.

    Cheers
    jimbo
    Remote desktop works great if your logging into the full Raspbian on a Pi. Once you install XRDP. If it's running OPENELEC/KODI though, its not so easy, if even possible. I haven't been able to make it work. I only just started trying about 10 min ago. Everything I read says you can't do it from Windows Remote Desktop. I'll have to plug my spare tower in and install the latest preview with BASH and give that a go.
      My Computer


  5. Posts : 5,286
    Win 10 Pro x64
    Thread Starter
       #25

    jimbo45 said:
    Hi there
    Can you install services on it -- I'd like to see if the excellent MPD (Music Player Daemon) works -- be great if I could run that from a windows console.

    However installing XRDP on the Linux host and simply accessing the Linux host directly via Windows RDP seems to negate the whole point of Bash on Windows - so is it a really useful function or will it be just a Toy.

    What would be nice if you had a whole Linux Virtualized environment built in including a GUI -- Linux can be made really small so the overhead shouldn't be too much at all.

    Cheers
    jimbo



    There's no problem installing services. I was able to install mpc, mpd, moc but it doesn't detect a sound driver. I have yet to go back and try to resolve that. Maybe you can help us figure it out.


    XRDP is good if you are not used to working on terminal screens and you rely on tools and icons (GUI) or if you are using office tools, etc. but SSH can also accomplish a lot if you know what you are doing.
      My Computer


  6. Posts : 11,247
    Windows / Linux : Arch Linux
       #26

    Hi there
    I'll have a go - I'm currently rebuilding a NAS box to use Esxi and a number of VM's this weekend. When I've done that I'll have a go with the latest build. I've got a spare machine I can use for this so it doesn't matter if I totally hose it up.

    Mpd would be great as it can run command line - doesn't need a GUI. I'll see about the sound problem. Be later in the week though -- want to get my NAS server up and running again first.

    Cheers
    jimbo
      My Computer


  7. Posts : 5,478
    2004
       #27

    Rocky said:
    I have been using Ubuntu BASH on Windows 10 for a couple of days now, and here are a couple of real quick observations. Contrary to what the OP said, there is no need for SUDO on BASH in Windows 10, when you open BASH you are already root. This is wrong and goes against everything that Ubuntu and Linux in general stands for.
    I have just enabled this feature in 14342 and it appears this has changed.

    After downloading Ubuntu from the store it prompts you to create a user and password. When you open bash it no longer opens root@localhost but yourname@yourWindowsPC. And you do have to use sudo now.

    Installing and Running BASH on Windows 10 (Build 14316)-sudo.png

    However through windows you have full control to %localappdata%\lxss\rootfs so it seems these authorities only apply to the bash side of things.

    Installing and Running BASH on Windows 10 (Build 14316)-authority.png
      My Computer


  8. Posts : 27,162
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #28

    I found this video today on YouTube:
      My Computers


  9. Posts : 5,478
    2004
       #29

    Cliff S said:
    I found this video today on YouTube:
    Excellent Video, thanks for that. He is great I think.

    It is a shame the whole root directory is in %appdata% as it would be nice if it was shared amongst users but I guess that isn't the point. I also wonder if it is possible to back rootfs up and copy back after a clean install to save re-installing everything - I'll try it I guess.
      My Computer


  10. Posts : 27,162
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #30

    lx07 said:
    Excellent Video, thanks for that. He is great I think.

    It is a shame the whole root directory is in %appdata% as it would be nice if it was shared amongst users but I guess that isn't the point. I also wonder if it is possible to back rootfs up and copy back after a clean install to save re-installing everything - I'll try it I guess.
    Try copying it to a Win10 VM or use @Kari's tutorial and create a native boot Win10 vhd: Hyper-V - Native Boot VHD - Windows 10 Forums
    Then if something screws up, just repair bootmgr with Macrium Reflect and delete the vhd
    Excerpt from the tutorial:
    If you are not a Windows Insider but would like to test the latest Windows Insider build to help you decide if opting in to Insider builds would be something for you, you can do it even if you have never had or used Hyper-V or would not even like to set it up.
    You can download free 90 day trial Hyper-V Windows 10 virtual machines from Microsoft, both the latest official release (build 10586 when writing this) and latest Insider build (14366).


    See this thread for download instructions: Windows 10 virtual machines now available on Microsoft Edge Dev - Windows 10 Forums

    You don't have to setup any virtualization software, nor do you need install anything, instead when you have downloaded the vm, mount the VHD it contains as told above and you can dualboot to your chosen Windows 10 build for 90 days, for free :)

      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:13.
Find Us




Windows 10 Forums