lxss | Fun with the Windows Subsystem for Linux | Video Utils library
kandi X-RAY | lxss Summary
kandi X-RAY | lxss Summary
This repository is dedicated to research, code, and various studies of the Windows Subsystem for Linux, also known as Bash on Ubuntu on Windows, and LXSS. It contains a variety of Proof-of-Concept Win32 and Linux binaries, both in user-mode and kernel-mode, in order to interact with the various subsystem pieces. Namely, it demonstrates usage of the Win32 COM interface between Bash.exe and LxssManager, as well as of the ADSS Bus interface between init and LxssManager. For Redstone 2, it shows off some of the new interoperability features of the subsystem. The PDF titled "The Linux Kernel hidden inside Windows 10" represents the BlackHat 2016 slides from my presentation, and a video is now available on Youtube at: If you would like to know more about my research or work, I invite you check out my blog at as well as my training & consulting company (Winsider Seminars & Solutions Inc.,) at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lxss
lxss Key Features
lxss Examples and Code Snippets
Community Discussions
Trending Discussions on lxss
QUESTION
I am using SDL2.0.12 on Ubuntu 20.04. I link statically to SDL2, adding the linker argument:
`sdl2-config --static-libs`
So far, so good.
However, the SDL static link flags pull in a slew of SDL2 dependencies, that are linked dynamically:
...ANSWER
Answered 2020-Dec-14 at 22:56The SDL development libraries provided in Ubuntu have many dynamic dependencies. Even for the static libSDL2.a
library.
When building SDL2 from source, you can avoid these.
For instance, to avoid a dependency on X11, you would feed it these autoconf flags:
QUESTION
I have Windows 2004 update and have installed WSL2. I am running Debian distribution and I have noticed that copy with preserve-permissions fail for character device files. Below is what I have done:
...ANSWER
Answered 2020-Jun-08 at 14:15onoma@:~$ sudo cp -Trpfx /dev/ ~/myTest
onoma@:~$ ll myTest/
total 32
drwxr-xr-x 8 root root 4096 Jun 8 16:07 ./
drwxr-xr-x 10 onoma onoma 4096 Jun 8 16:11 ../
crw-r--r-- 1 root root 10, 235 Jun 5 23:42 autofs
drwxr-xr-x 2 root root 4096 Jun 5 23:42 block/
drwxr-xr-x 2 root root 4096 Jun 8 16:07 bsg/
crw------- 1 root root 10, 234 Jun 5 23:42 btrfs-control
crw------- 1 root root 5, 1 Jun 5 23:42 console
crw------- 1 root root 10, 62 Jun 5 23:42 cpu_dma_latency
crw------- 1 root root 10, 203 Jun 5 23:42 cuse
lrwxrwxrwx 1 root root 13 Jun 5 23:42 fd -> /proc/self/fd/
crw-rw-rw- 1 root root 1, 7 Jun 5 23:42 full
crw-rw-rw- 1 root root 10, 229 Jun 5 23:42 fuse
crw-r--r-- 1 root root 1, 11 Jun 5 23:42 kmsg
crw------- 1 root root 10, 237 Jun 5 23:42 loop-control
brw------- 1 root root 7, 0 Jun 5 23:42 loop0
brw------- 1 root root 7, 1 Jun 5 23:42 loop1
brw------- 1 root root 7, 2 Jun 5 23:42 loop2
brw------- 1 root root 7, 3 Jun 5 23:42 loop3
brw------- 1 root root 7, 4 Jun 5 23:42 loop4
brw------- 1 root root 7, 5 Jun 5 23:42 loop5
brw------- 1 root root 7, 6 Jun 5 23:42 loop6
brw------- 1 root root 7, 7 Jun 5 23:42 loop7
drwxr-xr-x 2 root root 4096 Jun 5 23:42 mapper/
crw------- 1 root root 1, 1 Jun 5 23:42 mem
crw------- 1 root root 10, 59 Jun 5 23:42 memory_bandwidth
drwxr-xr-x 2 root root 4096 Jun 5 23:42 net/
crw------- 1 root root 10, 61 Jun 5 23:42 network_latency
crw------- 1 root root 10, 60 Jun 5 23:42 network_throughput
crw-rw-rw- 1 root root 1, 3 Jun 5 23:42 null
crw------- 1 root root 10, 144 Jun 5 23:42 nvram
crw------- 1 root root 108, 0 Jun 5 23:42 ppp
crw-rw-rw- 1 root root 5, 2 Jun 8 16:11 ptmx
drwxr-xr-x 2 root root 4096 Jun 5 23:42 pts/
brw------- 1 root root 1, 0 Jun 5 23:42 ram0
brw------- 1 root root 1, 1 Jun 5 23:42 ram1
brw------- 1 root root 1, 10 Jun 5 23:42 ram10
brw------- 1 root root 1, 11 Jun 5 23:42 ram11
brw------- 1 root root 1, 12 Jun 5 23:42 ram12
brw------- 1 root root 1, 13 Jun 5 23:42 ram13
brw------- 1 root root 1, 14 Jun 5 23:42 ram14
brw------- 1 root root 1, 15 Jun 5 23:42 ram15
brw------- 1 root root 1, 2 Jun 5 23:42 ram2
brw------- 1 root root 1, 3 Jun 5 23:42 ram3
brw------- 1 root root 1, 4 Jun 5 23:42 ram4
brw------- 1 root root 1, 5 Jun 5 23:42 ram5
brw------- 1 root root 1, 6 Jun 5 23:42 ram6
brw------- 1 root root 1, 7 Jun 5 23:42 ram7
brw------- 1 root root 1, 8 Jun 5 23:42 ram8
brw------- 1 root root 1, 9 Jun 5 23:42 ram9
crw-rw-rw- 1 root root 1, 8 Jun 5 23:42 random
crw------- 1 root root 251, 0 Jun 5 23:42 rtc0
brw------- 1 root root 8, 0 Jun 5 23:42 sda
brw------- 1 root root 8, 16 Jun 5 23:42 sdb
brw------- 1 root root 8, 32 Jun 5 23:42 sdc
brw------- 1 root root 8, 48 Jun 8 16:07 sdd
crw------- 1 root root 21, 0 Jun 5 23:42 sg0
crw------- 1 root root 21, 1 Jun 5 23:42 sg1
crw------- 1 root root 21, 2 Jun 5 23:42 sg2
crw------- 1 root root 21, 3 Jun 8 16:07 sg3
lrwxrwxrwx 1 root root 8 Jun 5 23:42 shm -> /run/shm/
lrwxrwxrwx 1 root root 15 Jun 5 23:42 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root 15 Jun 5 23:42 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 Jun 5 23:42 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root root 5, 0 Jun 8 16:08 tty
crw------- 1 root root 4, 0 Jun 5 23:42 tty0
crw------- 1 root root 4, 1 Jun 5 23:42 tty1
crw------- 1 root root 4, 10 Jun 5 23:42 tty10
crw------- 1 root root 4, 11 Jun 5 23:42 tty11
crw------- 1 root root 4, 12 Jun 5 23:42 tty12
crw------- 1 root root 4, 13 Jun 5 23:42 tty13
crw------- 1 root root 4, 14 Jun 5 23:42 tty14
crw------- 1 root root 4, 15 Jun 5 23:42 tty15
crw------- 1 root root 4, 16 Jun 5 23:42 tty16
crw------- 1 root root 4, 17 Jun 5 23:42 tty17
crw------- 1 root root 4, 18 Jun 5 23:42 tty18
crw------- 1 root root 4, 19 Jun 5 23:42 tty19
crw------- 1 root root 4, 2 Jun 5 23:42 tty2
crw------- 1 root root 4, 20 Jun 5 23:42 tty20
crw------- 1 root root 4, 21 Jun 5 23:42 tty21
crw------- 1 root root 4, 22 Jun 5 23:42 tty22
crw------- 1 root root 4, 23 Jun 5 23:42 tty23
crw------- 1 root root 4, 24 Jun 5 23:42 tty24
crw------- 1 root root 4, 25 Jun 5 23:42 tty25
crw------- 1 root root 4, 26 Jun 5 23:42 tty26
crw------- 1 root root 4, 27 Jun 5 23:42 tty27
crw------- 1 root root 4, 28 Jun 5 23:42 tty28
crw------- 1 root root 4, 29 Jun 5 23:42 tty29
crw------- 1 root root 4, 3 Jun 5 23:42 tty3
crw------- 1 root root 4, 30 Jun 5 23:42 tty30
crw------- 1 root root 4, 31 Jun 5 23:42 tty31
crw------- 1 root root 4, 32 Jun 5 23:42 tty32
crw------- 1 root root 4, 33 Jun 5 23:42 tty33
crw------- 1 root root 4, 34 Jun 5 23:42 tty34
crw------- 1 root root 4, 35 Jun 5 23:42 tty35
crw------- 1 root root 4, 36 Jun 5 23:42 tty36
crw------- 1 root root 4, 37 Jun 5 23:42 tty37
crw------- 1 root root 4, 38 Jun 5 23:42 tty38
crw------- 1 root root 4, 39 Jun 5 23:42 tty39
crw------- 1 root root 4, 4 Jun 5 23:42 tty4
crw------- 1 root root 4, 40 Jun 5 23:42 tty40
crw------- 1 root root 4, 41 Jun 5 23:42 tty41
crw------- 1 root root 4, 42 Jun 5 23:42 tty42
crw------- 1 root root 4, 43 Jun 5 23:42 tty43
crw------- 1 root root 4, 44 Jun 5 23:42 tty44
crw------- 1 root root 4, 45 Jun 5 23:42 tty45
crw------- 1 root root 4, 46 Jun 5 23:42 tty46
crw------- 1 root root 4, 47 Jun 5 23:42 tty47
crw------- 1 root root 4, 48 Jun 5 23:42 tty48
crw------- 1 root root 4, 49 Jun 5 23:42 tty49
crw------- 1 root root 4, 5 Jun 5 23:42 tty5
crw------- 1 root root 4, 50 Jun 5 23:42 tty50
crw------- 1 root root 4, 51 Jun 5 23:42 tty51
crw------- 1 root root 4, 52 Jun 5 23:42 tty52
crw------- 1 root root 4, 53 Jun 5 23:42 tty53
crw------- 1 root root 4, 54 Jun 5 23:42 tty54
crw------- 1 root root 4, 55 Jun 5 23:42 tty55
crw------- 1 root root 4, 56 Jun 5 23:42 tty56
crw------- 1 root root 4, 57 Jun 5 23:42 tty57
crw------- 1 root root 4, 58 Jun 5 23:42 tty58
crw------- 1 root root 4, 59 Jun 5 23:42 tty59
crw------- 1 root root 4, 6 Jun 5 23:42 tty6
crw------- 1 root root 4, 60 Jun 5 23:42 tty60
crw------- 1 root root 4, 61 Jun 5 23:42 tty61
crw------- 1 root root 4, 62 Jun 5 23:42 tty62
crw------- 1 root root 4, 63 Jun 5 23:42 tty63
crw------- 1 root root 4, 7 Jun 5 23:42 tty7
crw------- 1 root root 4, 8 Jun 5 23:42 tty8
crw------- 1 root root 4, 9 Jun 5 23:42 tty9
crw------- 1 root root 4, 64 Jun 5 23:42 ttyS0
crw------- 1 root root 4, 65 Jun 5 23:42 ttyS1
crw------- 1 root root 4, 66 Jun 5 23:42 ttyS2
crw------- 1 root root 4, 67 Jun 5 23:42 ttyS3
crw-rw-rw- 1 root root 1, 9 Jun 5 23:42 urandom
crw------- 1 root root 7, 0 Jun 5 23:42 vcs
crw------- 1 root root 7, 1 Jun 5 23:42 vcs1
crw------- 1 root root 7, 128 Jun 5 23:42 vcsa
crw------- 1 root root 7, 129 Jun 5 23:42 vcsa1
crw------- 1 root root 7, 64 Jun 5 23:42 vcsu
crw------- 1 root root 7, 65 Jun 5 23:42 vcsu1
drwxr-xr-x 2 root root 4096 Jun 5 23:42 vfio/
crw------- 1 root root 10, 238 Jun 5 23:42 vhost-net
crw------- 1 root root 10, 63 Jun 5 23:42 vsock
crw-rw-rw- 1 root root 1, 5 Jun 5 23:42 zero
QUESTION
I am getting this error:
...ANSWER
Answered 2019-Sep-27 at 13:56The issue here is an out-of-date MetPy version. The Xarray accessor was added in v0.8. To update to the current version of MetPy with the latest functionality, you can upgrade with conda update metpy
or pip install --upgrade metpy
.
QUESTION
The following error occurs during ql:quickload in SBCL
...ANSWER
Answered 2019-May-16 at 17:04The problem was that I forgot to execute (ql-dist:install-dist "http://dists.cl21.org/cl21.txt")
before quickloading. Works fine now.
QUESTION
I am using Windows Subsystem for Linux and am trying to find my terminal's .bashrc file.
Other threads generally indicate one of two locations:
C:\Users\USERNAME\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home\{LINUXUSER}\
or
C:\Users\USERNAME\AppData\Local\Lxss\home\USERNAME
On my machine, the Local
folder does not contain an Lxss
subdirectory, so that eliminates the second option, and the home
folder does not contain anything so that eliminates the first option. Where can I find .bashrc?
ANSWER
Answered 2019-Apr-07 at 10:02So apparently WSL does not create a user by default.
One can be set up as follows
QUESTION
A popular development pipeline, and one of the benefits of the Windows Subsystem for linux is to use a Linux based developer toolchain, i.e. gcc etc within WSS and then to access those build artifacts from Windows. In earlier versions of Windows 10 (1703 and earlier), you could access the Windows Subsystem for Linux file system via:
C:\Users\%USERNAME%\AppData\Local\lxss
This allowed you to access 'Linux' files from Windows.
Strictly speaking you were not supposed to modify any files there - but it was useful for read access.
Reference: https://github.com/Microsoft/BashOnWindows/issues/402#issuecomment-220585695
Under the Fall Creators Update of Windows 10 (1709), this seems to have disappeared.
Where has it gone? Clearly a workaround is to, as the last stage of the built pipeline copy out of Linux into Windows using the /mnt
mount, but not being access the files from windows seems like it must be a problem for many developers.
ANSWER
Answered 2017-Oct-18 at 22:45It seems that in order to support the capability to install several different installations of the Windows Subsystem for Linux, storing the file system in fixed location no longer made sense.
I created a unique file name in the /home/username directory, and then searched for it from Windows.
In my particular case the file system is stored in:
C:\Users\donal\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home\username
It seems likely that the location varies on every installation.
QUESTION
I'm installing Intel Parallel studio cluster on the LXSS on Windows 10 64 bits 17134. I'm asked to get kernel headers linux-headers-4.4.0-17134-Microsoft
(in the debian/ubuntu case). Where can I get this ? (not mentioned by google)
Is it fine to use linux-headers-4.4.0
instead ? My understanding is that there is a kernel interface translation linux kernel-windows kernel. Is it safe to use the standard header ?
ANSWER
Answered 2018-May-21 at 19:11So, this is a bit of a funny situation. Those header files don't technically exist, because there is no "4.4.0-17134-Microsoft" Linux kernel. The system is running on an NT kernel.
A standard set of Linux 4.4.0 headers (like the linux-headers-4.4.0
package you mentioned) should be an appropriate substitute for most purposes. You won't be able to build kernel modules in this environment, though, as there is no Linux kernel to load them into.
QUESTION
I'm currently using anaconda and python 3.6 on windows bash. Every time i want to use matplotlib I have to paste a copy of the matplotlibrc file into my working directory otherwise my code won't run or plot and I get the warning - /home/computer/anaconda3/lib/python3.6/site-packages/matplotlib/init.py:1022: UserWarning: could not find rc file;returning defaults
my matplotlibrc file is located at C:\Users\user\AppData\Local\lxss\home\puter\anaconda3\lib\python3.6\site-packages\matplotlib\mpl-data
I thought to fix this I could edit my .condarc file and set it to look for matplotlibrc in the correct directory. Could anyone tell me how to do this?
...ANSWER
Answered 2017-Aug-23 at 06:51It looks like when anaconda or matplotlib was installed it's created the matplotlibrc file in C:\Users\user\AppData\Local\lxss\home\puter\anaconda3\lib\python3.6\site-packages\matplotlib\mpl-data using the windows environment. This has caused the file not to be recognised in WSL.
To fix this create another matplotlibrc file in bash or whatever shell you're using. In the directory listed above copy the contents of the previously created matplotlibrc file into your new matplotlibrc file. Make sure you don't create this file in the windows environment otherwise it won't be recognised.
QUESTION
Good evening,
I have installed the Windows Subsystem for Linux. Now I'm trying to set the paths of jdk after installed IntelliJ. The paths is:
C:\Users\afaie\AppData\Local\lxss\rootfs\usr\lib\jvm\java-8-oracle
But if I try to build the project the result is this:
...ANSWER
Answered 2017-Jul-17 at 05:26Unfortunately, you have to install the java JDK again on Windows in order to correctly link it to IntelliJ. Windows apps cannot reference/access/modify linux files or programs due the two kernels being incompatible, thus making it impossible for you to access your WSL installation of JDK 8 from Windows. Refer to this link for more information: https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/
QUESTION
Ok, I've installed Linux subsystem in my Windows 10 and now following this tutorial to install google earth engine inside my Linux subsystem.
When I try to run following command to install GEE API, I get following error (I am getting the same error for "sudo pip install 'pyOpenSSL>=0.11'" command as well.):
...ANSWER
Answered 2017-Jun-28 at 05:15As mentioned in this thread, I updated setuptools and pip to the latest versions and I am finally able to run the earthengine-api without any issue.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lxss
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page