Code Monkey home page Code Monkey logo

alwsl's Introduction

Notice: This project is no longer maintained. I would recommend to not use the current install script, as the root system is severely out of date. Please refer to the WSL Distro switcher or official MS tooling for non-ubuntu distros. Of course the script and the download source will remain available.

This project provides an easy way to install a custom, minimal, arch linux distribution as the WSL host.

If you want to try it right now, clone and run the alwsl batch file from a non-admin command prompt.

Update Mar 2017

We are happy to announce Fastly as a sponsor for a reliable and global delivery of alwsl root images and future updates. Fastly commited a monthly four-figure credit to the alwsl project which will help with alwsl's transition into a new version later this month.

Checkout Fastly's Open-Source efforts here.


alwsl's People

Contributors

fizyk20 avatar jsmcconn avatar kyleondy avatar toxel avatar turbo avatar zameran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alwsl's Issues

chroot: "Function not implemented"

I know that this isn't an issue with alwsl -- but I wanted to create an issue for the people like me who will wonder why many GNU utilities and pacman invocations have strange errors like the following:

> chroot /tmp
chroot: cannot change root directory to '/tmp': Function not implemented

> pacman -S netcat
# snip
:: Processing package changes...
(1/1) installing gnu-netcat                                              [########################################] 100%
could not change the root directory (Function not implemented)
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/1) Updating the info directory file...
could not change the root directory (Function not implemented)
error: command failed to execute correctly

I'm currently on Win10 OS Build 14393.351, Windows 10 Enterprise.

This issue blocks certain functionalities (i.e., makepkg -si for things like installing yaourt) like one would with a normal Arch system. This is because chroot hasn't been implemented yet for the WSL for non-Insider builds. It was implemented in the Fast Ring Insider build 14936, according to a developer's response to user feedback here. Some workarounds have been suggested, like compiling a no-op chroot, but these are not safe and can cause some disasters in one's filesystem. I think the best option is to wait until that functionality makes it to the stable Win10 builds.

Do what you want with this issue, but my bet is that it'd be most useful as an open issue until chroot comes to a stable Win10 build, which is currently slated for early 2017 release.

posix_spawn failed: Operation not permitted

Hello,
When I try to compile and then link software through the ldc compiler it thrown me this error:

Error: /usr/sbin/ar failed with status: -1
Error: message: posix_spawn failed: Operation not permitted

status

is this project dead? README.md states that a new version will be ready in "a few days"

alwsl and zfs

Hello, i just discovered this project and i am wondering what are the possibilities of it.
I saw that it is possible to run yaourt, will i be able to use it to plug zfs and samba so i can my zfs raid on my windows install?
That would be glorious !
Sorry to bother you with noob question :)

Ask to install X

alwsl is auto-configured to use X if available. Improvement: Ask user during install if they want to install XMing.

Security concerns:

Sourceforge is notorious for packaging adware. Pull XMing from the Turbo CDN (same place where the rootfs is fetched already).

Arrow keys don't work

After clean installing alwsl I found that the arrow keys don't work in Arch. For example, I can't use left/right to move the text edit location on the command line.

This was found when using bash in ConEmu. Note that the same issue didn't exist when using the standard Ubuntu WSL in ConEmu.

Building OpenRCT2: lib32-sdl2_ttf unable to build

checking whether we are cross compiling... configure: error: in /tmp/yaourt-tmp-root/aur-lib32-sdl2_ttf/src/SDL2_ttf-2.0.14': configure: error: cannot run C compiled programs. If you meant to cross compile, use--host'.

some AUR packages fail to build

I've tried compiling aur packages such as crosstool-ng and arm-linux-gnueabihf and both will fail at some point with the error bison: m4 subprocess failed: Operation not permitted below is a sample of the makepkg output

config.status: creating Makefile
  SED    'ct-ng'
  SED    'scripts/crosstool-NG.sh'
  SED    'scripts/saveSample.sh'
  SED    'scripts/showTuple.sh'
  GEN    'config/configure.in'
  GEN    'paths.mk'
  GEN    'paths.sh'
  DEP    'nconf.gui.dep'
  DEP    'nconf.dep'
  DEP    'lxdialog/yesno.dep'
  DEP    'lxdialog/util.dep'
  DEP    'lxdialog/textbox.dep'
  DEP    'lxdialog/menubox.dep'
  DEP    'lxdialog/inputbox.dep'
  DEP    'lxdialog/checklist.dep'
  DEP    'mconf.dep'
  DEP    'conf.dep'
  BISON  'zconf.tab.c'
bison: m4 subprocess failed: Operation not permitted
  BISON  'zconf.tab.c'
bison: m4 subprocess failed: Operation not permitted
make[2]: *** No rule to make target 'zconf.tab.c', needed by 'zconf.tab.o'.  Stop.
make[1]: *** [Makefile:167: build-lib-kconfig] Error 2
make: *** [Makefile:127: build] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Cannot update pacman-key keyring

When I do pacman-key --refresh-keys (on the default sks keyserver , tested also with the pgp.mit.edu keyserver) it fails with the message "gpg: keyserver refresh failed. ERROR: A specified local key cannot be updated from a keyserver"

Can you change the download link or display the progress bar?

As we all know, China has a hateful GFW, which led to the download speed is very slow or simply can not download.
So can you put this file on some large sites (such as github, onedrive), or display a progress bar to let people see whether it is in the download.

new update breaks pacman

ca-certificates-utils 20170307-1 upgrade requires manual intervention

2017-03-15

The upgrade to ca-certificates-utils 20170307-1 requires manual intervention because a symlink which used to be generated post-install has been moved into the package proper.

As deleting the symlink may leave you unable to download packages, perform this upgrade in three steps:

pacman -Syuw # download packages

rm /etc/ssl/certs/ca-certificates.crt # remove conflicting file

pacman -Su # perform upgrade

[code]

pacman -Syyu

:: Synchronizing package databases...
error: failed retrieving file 'core.db' from mirrors.kernel.org : error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from mirrors.kernel.org : error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
error: failed to update extra (download library error)
error: failed retrieving file 'community.db' from mirrors.kernel.org : error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
error: failed to update community (download library error)
error: failed to synchronize all databases
[/code]

Catch all nonsense Microsoft errors

Add an early check and fault on 0x800 errors from lxrun. Feature-detect, since lxrun sometimes[1] claims installation success if nothing at all was installed.

Fix in 0.06 soon.

top doesn't work

Running top command from bash terminal only seems to clear the screen and remove the cursor.

Error: 0x80070002

i only getting this error when trying to use this..
worked great like 2 - 3 weeks ago..

Add audio support

Ask user during install if audio should be configured. Since the actual audio device is hidden from WSL, there needs to be a pulseaudio server installed on the Windows side.

Batch Recursion Exceeds Stack Limits

Keep getting this error when running the batch file following rootfs extraction:

PS C:\Users\<username>\Downloads> .\alwsl.bat install
alwsl (warn): There's already a WSL rootfs installed. We need to remove that. If you have data there,
alwsl (warn): cancel this and backup your rootfs.
Proceed with alwsl install and remove old rootfs now? [Y,N]?Y
alwsl (info): Cleaning old files.
alwsl (info): Installing base lxss fs from trusty server image. This will take A WHILE.
-- Beta feature --
This will install Ubuntu on Windows, distributed by Canonical
and licensed under its terms available here:
https://aka.ms/uowterms

Downloading from the Windows Store... 100%
Extracting filesystem, this will take a few minutes...
Installation successful!
alwsl (info): Downloading alwsl rootfs (this might take a while)...
alwsl (info): Downloading checksum for this image.
alwsl (info): Checksums match :-)
alwsl (info): Copying rootfs to temporary extraction destination.
alwsl (info): Unsquashing rootfs.
Parallel unsquashfs: Using 8 processors
28331 inodes (26391 blocks) to write

[=========================================================================================================================================================================================================================================================| ] 26302/26391  99%

created 22909 files
created 1928 directories
created 3640 symlinks
created 8 devices
created 0 fifos
******  B A T C H   R E C U R S I O N  exceeds STACK limits ******
Recursion Count=301, Stack Usage=90 percent
******       B A T C H   PROCESSING IS   A B O R T E D      ******

How to update pacman, fakeroot and other customized packages?

As I read in another issue, alwsl is providing a customized version of pacman.

If pacman is updated, and I assume alwsl will have a corresponding version some time later. How can I update them?

Even manually replacing the binaries will do for me. But I haven't found those binaries (only a rootfs used in the .bat file), so wondering what's your suggested way of updating those packages.

Thanks!

Instruction about how to swap rootfs

Add some minimal instruction about how to be able to have several rootfs images and move between them. This would allow to don't need to remove the Ubuntu-based rootfs but also open the door to user other systems likes NodeOS.

Typo in pacman.conf

Currently Is:
IgnorePkg = pacman fakeroot makepgk

Should be:
IgnorePkg = pacman fakeroot makepkg

Launching script in a folder with spaces in the name causes errors in installation

The installation derps when one of the folders containing the script has spaces (for instance that folder) when it attempts to copy the rootfs to the temporary extraction destination.

In that case, the script expects /mnt/c/that and folder/alwsl.sfs separately (and fails since it obviously can't find them) instead of /mnt/c/that folder/alwsl.sfs.

In case anybody runs into the same problem, just put the script in another place that hasn't any spaces in the name (like C:\temp or anywhere )

Pacman assertion failed

pacman is a holdpkg in alwsl
but after running pacman -Syu, the ssl support broke.
so i issued pacman -S pacman.
after that, i get "pacman: ../sysdeps/posix/getaddrinfo.c:2542: getaddrinfo: Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed." occationally.

can i see which step is being of the process?

#I just push the bat file to the cmd.exe to run this,i don't it's ok?
And as known,it's slow to visit the site in china,even if the global agent is opening.
So i want to know which step is being and how long it will take.
Sorry for bothering,maybe stupid.
Thanks.

minecraft: Unable to get SSL working in Java

Just as an example

yaourt -Syyuu --aur 
yaourt -S minecraft

That will install Minecraft as well as a Java version - this issue affects all of them though.

This is the output of Minecraft:

[krutonium@DESKTOP-PTBK953 pfckr]$ minecraft
Bootstrap (v5)
Current time is Oct 5, 2016 5:36:27 PM
System.getProperty('os.name') == 'Linux'
System.getProperty('os.version') == '3.4.0+'
System.getProperty('os.arch') == 'amd64'
System.getProperty('java.version') == '1.8.0_102'
System.getProperty('java.vendor') == 'Oracle Corporation'
System.getProperty('sun.arch.data.model') == '64'

Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 2/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 3/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 4/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 5/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 6/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 7/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 8/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 9/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma (try 10/10)
Exception: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Unable to download remote file. Check your internet connection/proxy settings.

I've tried solutions posted across the internet, including copying relevant files from Windows, but it would seem that Java is unable to use SSL.

Any ideas about how I may be able to fix this?

B A T C H R E C U R S I O N exceeds STACK limits

The script cuts out towards the end.

Parallel unsquashfs: Using 8 processors
28331 inodes (26391 blocks) to write

[===================================================================
created 22909 files
created 1928 directories
created 3640 symlinks
created 8 devices
created 0 fifos
****** B A T C H R E C U R S I O N exceeds STACK limits ******
Recursion Count=301, Stack Usage=90 percent
****** B A T C H PROCESSING IS A B O R T E D ******

Issue with special character directories

I just spent quite some time trying to fix this script, only to find that the issue was that I have an exclamation mark in my directory (so that it's at the top in a sorted folder).

The folder is E:\!Backup\!Linux but %~dp0 returns E:\Backup\Linux

It was throwing the following issues. I'm putting them here so that someone might find this some day and save some time.

Unable to add file - 0x80070057
The directory name is invalid.
alwsl (fail): Err, download failed. Try again (and check your firewall/AV settings).

Info

****** B A T C H R E C U R S I O N exceeds STACK limits ******
Recursion Count=301, Stack Usage=90 percent
****** B A T C H PROCESSING IS A B O R T E D ******
Any idea

Sorry for batch

Having after reading all the info inherent to the
PS C:> .\alwsl.bat install
alwsl (info): Cleaning old files.
alwsl (info): Installing base lxss fs from trusty server image. This will take A WHILE.
-- Beta feature --
This will install Ubuntu on Windows, distributed by Canonical
and licensed under its terms available here:
https://aka.ms/uowterms

Downloading from the Windows Store... 100%
Extracting filesystem, this will take a few minutes...
Installation successful!
alwsl (info): Downloading alwsl rootfs (this might take a while)...
alwsl (info): Downloading checksum for this image.
alwsl (info): Checksums match :-)
alwsl (info): Copying rootfs to temporary extraction destination.
alwsl (info): Unsquashing rootfs.
Parallel unsquashfs: Using 8 processors
24803 inodes (22681 blocks) to write

[==================================================================================================| ] 22578/22681 99%
created 19400 files
created 1720 directories
created 3611 symlinks
created 11 devices
created 0 fifos
****** B A T C H R E C U R S I O N exceeds STACK limits ******
Recursion Count=301, Stack Usage=90 percent
****** B A T C H PROCESSING IS A B O R T E D ******

with the windows firewall of download it broked while Fw on gives me same error no diff with admin or users.Running on windows 10 Preview 149436

tips for updating

hi, first of all, this is an awesome Project so thanks to the autor.
when i run a pacman -Syu it ask me if i wanna overwrite something with dbus.. i say no but then it dont upgrade anything, whats the correct procedure to upgrade? thanks

Check for admin

(TODO)

Check if alwsl is run as admin. That should never happen, is not required, and may have catastrophic effects on the system.

How's alwsl.sfs built?

Thank you a lot for ALWSL, but how's alwsl.sfs built?

Also, why do you include yaourt by default?

Installation fails if there is a space in username

alwsl (info): Downloading alwsl rootfs (this might take a while)...
alwsl (info): Copying rootfs to temporary extraction destination.
cp: cannot stat ‘/mnt/c/Users/First’: No such file or directory
cp: cannot stat ‘Last/Downloads/alwsl/alwsl.sfs’: No such file or directory
alwsl (info): Unsquashing rootfs.
alwsl (info): Transforming...
1 dir(s) moved.
1 dir(s) moved.
1 dir(s) moved.
Error: 0x80070002
alwsl (info): Checking installation success...
alwsl (fail): Installation failed. Bash is still ubuntu. Try again.

Fixable with:
-bash -c "cd && mkdir -p rootfs-temp && cd rootfs-temp && cp %mountpoint% ."
+bash -c "cd && mkdir -p rootfs-temp && cd rootfs-temp && cp \"%mountpoint%\" ."

socat: core dumped

socat core dumped as soon as I run it:

*** buffer overflow detected ***: socat terminated
======= Backtrace: =========
/usr/lib/libc.so.6(+0x70c4b)[0x7f65f0d60c4b]
/usr/lib/libc.so.6(__fortify_fail+0x37)[0x7f65f0de8f17]
/usr/lib/libc.so.6(+0xf7050)[0x7f65f0de7050]
/usr/lib/libc.so.6(+0xf8e8a)[0x7f65f0de8e8a]
socat[0x423ac7]
socat[0x42ab7e]
socat[0x415b94]
socat[0x416356]
socat[0x4168c0]
socat[0x40a295]
socat[0x40a345]
socat[0x408de8]
socat[0x40615f]
/usr/lib/libc.so.6(__libc_start_main+0xf1)[0x7f65f0d10291]
socat[0x40642a]
======= Memory map: ========
00400000-0044c000 r-x- 00000000 00:00 136863                     /usr/bin/socat
0064b000-0064c000 r--- 0004b000 00:00 136863                     /usr/bin/socat
0064c000-0064d000 rw-- 0004c000 00:00 136863                     /usr/bin/socat
0064d000-0068e000 rw-- 00000000 00:00 0
0234c000-0236d000 rw-- 00000000 00:00 0                          [heap]
7f65f0446000-7f65f04e1000 ---- 00016000 00:00 17976              /usr/lib/libgcc_s.so.1
7f65f04e1000-7f65f0645000 ---- 00000000 00:00 0
7f65f0645000-7f65f0646000 r--- 00015000 00:00 17976              /usr/lib/libgcc_s.so.1
7f65f0646000-7f65f0647000 rw-- 00016000 00:00 17976              /usr/lib/libgcc_s.so.1
7f65f0646000-7f65f0647000 rw-- 00016000 00:00 17976              /usr/lib/libgcc_s.so.1
7f65f0650000-7f65f0652000 r-x- 00000000 00:00 71380              /usr/lib/libdl-2.24.so
7f65f0652000-7f65f0654000 ---- 00002000 00:00 71380              /usr/lib/libdl-2.24.so
7f65f0654000-7f65f0852000 ---- 00000000 00:00 0
7f65f0852000-7f65f0853000 r--- 00002000 00:00 71380              /usr/lib/libdl-2.24.so
7f65f0853000-7f65f0854000 rw-- 00003000 00:00 71380              /usr/lib/libdl-2.24.so
7f65f0860000-7f65f08c7000 r-x- 00000000 00:00 128841             /usr/lib/libncursesw.so.6.0
7f65f08c7000-7f65f08cc000 ---- 00067000 00:00 128841             /usr/lib/libncursesw.so.6.0
7f65f08cc000-7f65f0ac6000 ---- 00000000 00:00 0
7f65f0ac6000-7f65f0aca000 r--- 00066000 00:00 128841             /usr/lib/libncursesw.so.6.0
7f65f0aca000-7f65f0acc000 rw-- 0006a000 00:00 128841             /usr/lib/libncursesw.so.6.0
7f65f0ad0000-7f65f0ae8000 r-x- 00000000 00:00 72389              /usr/lib/libpthread-2.24.so
7f65f0ae8000-7f65f0af4000 ---- 00018000 00:00 72389              /usr/lib/libpthread-2.24.so
7f65f0af4000-7f65f0ce7000 ---- 00000000 00:00 0
7f65f0ce7000-7f65f0ce8000 r--- 00017000 00:00 72389              /usr/lib/libpthread-2.24.so
7f65f0ce8000-7f65f0ce9000 rw-- 00018000 00:00 72389              /usr/lib/libpthread-2.24.so
7f65f0ce9000-7f65f0ced000 rw-- 00000000 00:00 0
7f65f0cf0000-7f65f0e85000 r-x- 00000000 00:00 71266              /usr/lib/libc-2.24.so
7f65f0e85000-7f65f0ecd000 ---- 00195000 00:00 71266              /usr/lib/libc-2.24.so
7f65f0ecd000-7f65f1084000 ---- 00000000 00:00 0
7f65f1084000-7f65f1088000 r--- 00194000 00:00 71266              /usr/lib/libc-2.24.so
7f65f1088000-7f65f108a000 rw-- 00198000 00:00 71266              /usr/lib/libc-2.24.so
7f65f108a000-7f65f108e000 rw-- 00000000 00:00 0
7f65f1090000-7f65f12de000 r-x- 00000000 00:00 41108              /usr/lib/libcrypto.so.1.0.0
7f65f12de000-7f65f134a000 ---- 0024e000 00:00 41108              /usr/lib/libcrypto.so.1.0.0
7f65f134a000-7f65f14dd000 ---- 00000000 00:00 0
7f65f14dd000-7f65f14f9000 r--- 0024d000 00:00 41108              /usr/lib/libcrypto.so.1.0.0
7f65f14f9000-7f65f1505000 rw-- 00269000 00:00 41108              /usr/lib/libcrypto.so.1.0.0
7f65f1505000-7f65f1508000 rw-- 00000000 00:00 0
7f65f1510000-7f65f1577000 r-x- 00000000 00:00 41107              /usr/lib/libssl.so.1.0.0
7f65f1577000-7f65f158e000 ---- 00067000 00:00 41107              /usr/lib/libssl.so.1.0.0
7f65f158e000-7f65f1776000 ---- 00000000 00:00 0
7f65f1776000-7f65f177a000 r--- 00066000 00:00 41107              /usr/lib/libssl.so.1.0.0
7f65f177a000-7f65f1781000 rw-- 0006a000 00:00 41107              /usr/lib/libssl.so.1.0.0
7f65f1790000-7f65f17d4000 r-x- 00000000 00:00 33350              /usr/lib/libreadline.so.7.0
7f65f17d4000-7f65f17e9000 ---- 00044000 00:00 33350              /usr/lib/libreadline.so.7.0
7f65f17e9000-7f65f19d4000 ---- 00000000 00:00 0
7f65f19d4000-7f65f19d6000 r--- 00044000 00:00 33350              /usr/lib/libreadline.so.7.0
7f65f19d6000-7f65f19dc000 rw-- 00046000 00:00 33350              /usr/lib/libreadline.so.7.0
7f65f19dc000-7f65f19de000 rw-- 00000000 00:00 0
7f65f19e0000-7f65f19e2000 r-x- 00000000 00:00 72480              /usr/lib/libutil-2.24.so
7f65f19e2000-7f65f19e3000 ---- 00002000 00:00 72480              /usr/lib/libutil-2.24.so
7f65f19e3000-7f65f1be1000 ---- 00000000 00:00 0
7f65f1be1000-7f65f1be2000 r--- 00001000 00:00 72480              /usr/lib/libutil-2.24.so
7f65f1be2000-7f65f1be3000 rw-- 00002000 00:00 72480              /usr/lib/libutil-2.24.so
7f65f1bf0000-7f65f1bf7000 r-x- 00000000 00:00 72405              /usr/lib/librt-2.24.so
7f65f1bf7000-7f65f1bf8000 ---- 00007000 00:00 72405              /usr/lib/librt-2.24.so
7f65f1bf8000-7f65f1df6000 ---- 00000000 00:00 0
7f65f1df6000-7f65f1df7000 r--- 00006000 00:00 72405              /usr/lib/librt-2.24.so
7f65f1df7000-7f65f1df8000 rw-- 00007000 00:00 72405              /usr/lib/librt-2.24.so
7f65f1e00000-7f65f1e23000 r-x- 00000000 00:00 70925              /usr/lib/ld-2.24.so
7f65f2022000-7f65f2023000 r--- 00022000 00:00 70925              /usr/lib/ld-2.24.so
7f65f2023000-7f65f2024000 rw-- 00023000 00:00 70925              /usr/lib/ld-2.24.so
7f65f2024000-7f65f2025000 rw-- 00000000 00:00 0
7f65f2150000-7f65f2151000 rw-- 00000000 00:00 0
7f65f2160000-7f65f2162000 rw-- 00000000 00:00 0
7f65f2170000-7f65f2172000 rw-- 00000000 00:00 0
7f65f2180000-7f65f2182000 rw-- 00000000 00:00 0
7fffccda7000-7fffcd5a7000 rw-- 00000000 00:00 0                  [stack]
7fffcd744000-7fffcd745000 r-x- 00000000 00:00 0                  [vdso]
[1]    268 abort (core dumped)  socat UNIX-LISTEN:/tmp/wsl-ssh-pageant.socket,unlink-close,unlink-early

sudo doesn't think the terminal is worthy of tty status

When I invoke bash.exe, and I try to use sudo and enter a password, I get sudo: no tty present and no askpass program specified. This is rather unfortunate while trying to not run as root all the time when you can't use sudo.

This can be fixed with NOPASSWD, but it seems like a deeper issue.

Can't install on W10 with admin privileges

I'm running from cmd with administrator privileges, and get the following:

` alwsl.bat install
alwsl (info): Cleaning old files.
alwsl (info): Installing base lxss fs from trusty server image. This will take A WHILE.
-- Beta feature --
This will install Ubuntu on Windows, distributed by Canonical
and licensed under its terms available here:
https://aka.ms/uowterms

Downloading from the Windows Store...
Unable to download from the Windows Store. Please check your network connection.
alwsl (fail): lxrun failed to install Microsoft's rootfs. Try to restart alwsl again. If this
alwsl (fail): error persists, check your firewall and AV. If all fails, open a GH issue.`

Any assistance to help fix/workaround the issue is gladly appreciated.

install fish shell error

I've tried to install fish shell,but there are some errors in it:

root@DESKTOP-8DTO912:~# fish
Failed to execute process '/usr/sbin/uname'. Reason:
exec: Invalid argument
switch: Expected exactly one argument, got 0

/usr/share/fish/functions/__fish_pwd.fish (line 1): switch (uname)
^
from sourcing file /usr/share/fish/functions/__fish_pwd.fish
called on standard input

in command substitution
called on standard input

in command substitution
called on standard input

fish: echo $_ " "; __fish_pwd
^
in command substitution
called on standard input

Failed to execute process '/usr/bin/fish'. Reason:
exec: Invalid argument
Failed to execute process '/usr/sbin/seq'. Reason:
exec: Invalid argument
Failed to execute process '/usr/sbin/seq'. Reason:
exec: Invalid argument
Failed to execute process '/usr/sbin/seq'. Reason:
exec: Invalid argument
Failed to execute process '/usr/sbin/hostname'. Reason:
exec: Invalid argument
fish: Unknown command '_fish_pwd'
fish: echo $
" "; __fish_pwd
^
in command substitution
called on standard input

root@ ~# exit
fish: Unknown command '_fish_pwd'
fish: echo $
" "; __fish_pwd
^
in command substitution
called on standard input

Error: /proc must be mounted

After installing archilinux
whene i run "ps" i get :

Error: /proc must be mounted
To mount /proc at boot you need an /etc/fstab line like:
proc /proc proc defaults
In the meantime, run "mount proc /proc -t proc"

stack overflow after unsquashfs

I tried to install alwsl to my windows but got this message about stack limit:

C:\Users\mainnika\Github\alwsl>alwsl.bat install
alwsl (info): Cleaning old files.
alwsl (info): Installing base lxss fs from trusty server image. This will take A WHILE.
-- Beta feature --
This will install Ubuntu on Windows, distributed by Canonical
and licensed under its terms available here:
https://aka.ms/uowterms

Downloading from the Windows Store... 100%
Extracting filesystem, this will take a few minutes...
Installation successful!
alwsl (info): Downloading alwsl rootfs (this might take a while)...
alwsl (info): Downloading checksum for this image.
alwsl (info): Checksums match :-)
alwsl (info): Copying rootfs to temporary extraction destination.
alwsl (info): Unsquashing rootfs.
Parallel unsquashfs: Using 4 processors
28331 inodes (26391 blocks) to write

[====================================================================================================================================================\ ] 26294/26391  99% created 22909 files
created 1928 directories
created 3640 symlinks
created 0 devices
created 0 fifos
******  B A T C H   R E C U R S I O N  exceeds STACK limits ******
Recursion Count=300, Stack Usage=90 percent
******       B A T C H   PROCESSING IS   A B O R T E D      ******

Because of error, rootfs hasn't been replaced.

What is it?

The ReadMe file is a brief text! May you add more details (from both general and technical point of view) about what is it and what does it do? thnx

ninja doesn't work (ninja: fatal: posix_spawn: Invalid argument)

I'm not sure if this is the correct place for this as there is an issue on the main WSL thing, but I'm reporting this anyway in the hope that it can help.
Whenever the ninja build tool tries to start another program it crashes with the error ninja: fatal: posix_spawn: Invalid argument.

A good / simple way to reproduce is to compile ninja from source.
I have also put some more details at microsoft/WSL#1306 (comment).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.