[DISCUSSION] Windows Subsystem for Linux (WSL)

Discussion in 'Windows 10' started by Tito, Jul 30, 2016.

  1. tcd

    tcd MDL Novice

    Aug 6, 2016
    2
    1
    0
    It seems anything which requires an eth0 interface doesn't work: tcptrack, vnstat and bwm-ng all fail when using -i eth0. I really hope Microsoft manages to implement this as there are a lot of useful apps that would be compatible :D
     
  2. dmex

    dmex MDL Junior Member

    Apr 20, 2011
    95
    105
    0
    If you have installed WSL by enabling the "Development mode" option in Settings - The settings app automatically installs a 'development mode package'... That package automatically installs an SSH server that's enabled by default and it also automatically creates and enabled two firewall rules allowing remote access to that SSH server from anywhere.

    You can connect to that ssh server using "ssh <your_ip> -l <local_username>" with the username being the one you use with that machine and your windows password to connect... It'll also create a new process for every ssh connection to that machine (no limits)...

    Not only can you brute-force that ssh server but it also doesn't limit the number of processes created (for each new connection) which in itself is another type of attack. You should disable the SshBroker and SshProxy services and also disable those firewall rules to prevent attacks on your development machine...
     
  3. winxuser

    winxuser MDL Junior Member

    Jun 19, 2011
    94
    5
    0
    Bash on ubuntu for windows question

    Hey guys i decided to give bash a go, now i dont know how many of you have had a chance to play around with it and get it working properly. but i have a MAJOR issue with it.

    so i decided to sudo apt-get upgrade, and omg the network connection is soooooo slow, normal downloading on windows or ubuntu i get around 1-4mb/s, using ubuntu for windows it ranges between 4-50KB/S is there a way to be able to use the whole network connection? becuase i wanted to give it a go by downlaoding android kernel sources and give a go at compiling on windows.

    thanks for reading and hope this can be fixed
     
  4. winxuser

    winxuser MDL Junior Member

    Jun 19, 2011
    94
    5
    0
    Yah I might try that. But first I want to try and see if it will download anything else at full speed, if not then it's an issue with Ubuntu for windows and not the Ubuntu servers
     
  5. winxuser

    winxuser MDL Junior Member

    Jun 19, 2011
    94
    5
    0
    Just to install git will probably take like 10 minutes, once that's done then I can try and clone a repo
     
  6. SpeedDream

    SpeedDream MDL Addicted

    Feb 20, 2012
    619
    121
    30
    So far Ubuntu for windows doesn't seem as stable as running it in native mode, if you google it there are tons of forums threads with problems it has
     
  7. jygoro

    jygoro MDL Senior Member

    Sep 21, 2011
    254
    142
    10
    #71 jygoro, Aug 14, 2016
    Last edited by a moderator: Apr 20, 2017
    First of all do
    Code:
    sudo rm /etc/hosts
    and close and open bash again to fix any localhost problems.
    Are you using any antivirus? Are you behind a Proxy/Firewall?
     
  8. Hadron-Curious

    Hadron-Curious MDL Guru

    Jul 4, 2014
    3,725
    600
    120
    Did you report these security loopholes to Microsoft or post them to the Feedback as issues?
     
  9. Erik B

    Erik B MDL Member

    Oct 10, 2008
    105
    26
    10
    As I understand it, the SSH services are run on the Ubuntu Linux side, thus not a Microsoft issue. I guess he basically means Ubuntu SSH is vulnerable and a possible security risk. However I think almost everyone using and testing the subsystem are on development machines with all sorts of experimental features and seriously doubt anyone would use it as a Ubuntu server. But that's just my thoughts.
     
  10. 100

    100 MDL Expert

    May 17, 2011
    1,354
    1,589
    60
    No, that SSH server is a Windows service.
     
  11. Erik B

    Erik B MDL Member

    Oct 10, 2008
    105
    26
    10
    Right, I was looking for them but couldn't find them, so I assumed they were implemented just as they were in SUA, running as a POSIX service. I found them now, sorry. :eek:
     
  12. biatche

    biatche MDL Addicted

    Nov 14, 2009
    573
    144
    30
    Trying this out for the first time.

    I'm getting "Shell Infrastructure Host has stopped working --> Close the program"

    All I did was:

    1. PC Settings > Updates & Security > For Developers > Developer Mode
    2. Programs and features > Turn windows features on/off > Tick linux subsystem beta
    3. upon applying successfully, reboot.
    4. Error msg appears after winlogin (autologin)

    Can't press start button or anything any longer.

    Suggestions?
     
  13. Hadron-Curious

    Hadron-Curious MDL Guru

    Jul 4, 2014
    3,725
    600
    120
    Are you running 64-bit Windows 10 and what build?
     
  14. biatche

    biatche MDL Addicted

    Nov 14, 2009
    573
    144
    30
    win10-64 enterprise rs1
     
  15. Hadron-Curious

    Hadron-Curious MDL Guru

    Jul 4, 2014
    3,725
    600
    120
    #79 Hadron-Curious, Aug 16, 2016
    Last edited by a moderator: Apr 20, 2017
    1) Press Windows Key + X and select Command Prompt or PowerShell(Admin).

    2) If that worked run the command below.

    Code:
    Type or copy and past  Get-AppxPackage | % { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppxManifest.xml" -verbose }
     
  16. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,984
    1,331
    120

    Not the smartest question ever, given the LXSS is available only on RS1 x64 :D