20
submitted 1 year ago by _s10e@feddit.de to c/linux@lemmy.ml

As a long-term Linux user, I tried running Ubuntu under the Windows Subsystem for Linux. I works!

I have tried to setup ecryptfs, but this fails complaining that kernel module is missing. Here I don't know enough about WSL, but it appears to come with a custom kernel.

Can I essily encrypt WSL? If Luks is the answer, how do I enter the passphrase? The boot process is hidden.

top 7 comments
sorted by: hot top controversial new old
[-] PumpkinEscobar@lemmy.world 10 points 1 year ago

For the easy option / question - do you have bitlocker enabled? That’s not enough?

Do you want the encrypted folder to be automatically-unlocked or unlocked with a password

You can build your own Linux kernel for WSL, I haven’t done it and unless that sounds like fun to you that’s not the route I’d go.

[-] Chais@sh.itjust.works 6 points 1 year ago

Not sure if the Linux crowd can answer this Windows question.

[-] projectdp@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

I've read that systemd-homed can do encrypted home directories but I haven't tried it, much less on WSL but that may get you to achieve the encrypted home directory at least.

Personally I don't think I would have a need to encrypt all of WSL, but maybe that also makes sense for your case.

ArchWiki example: https://wiki.archlinux.org/title/Systemd-homed

[-] flashgnash@lemm.ee 2 points 1 year ago

Would it not be encrypted if you just encrypt your windows drive with bitlocker? Seems kinda redundant to double encrypt to me

[-] phx@lemmy.ca 2 points 1 year ago

I think this might be possible with WSL2, which is more of a VM type instance, but WSL1 has issues with kernel modules and some networking stuff due to how it integrates with Windows

[-] llama_spit@lemm.ee 1 points 1 year ago

Yes.

You'll just boot up into a blank home folder and a completely uncustomized bash (or whatever your default shell is).

After mounting you'll have to restart your shell or source your .${SHELL}rc

[-] _s10e@feddit.de 1 points 1 year ago

Ok, so via LUKS. Thanks

load more comments
view more: next ›
this post was submitted on 08 Aug 2023
20 points (95.5% liked)

Linux

48199 readers
989 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS