this post was submitted on 10 Jul 2023
8 points (83.3% liked)

Selfhosted

39435 readers
5 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I'm currently running an instance on Ubuntu but I'm wondering if it can be moved to my windows computer?

top 16 comments
sorted by: hot top controversial new old
[–] [email protected] 9 points 1 year ago (2 children)

Wouldn't recommend running production services on windows.

[–] YonatanAvhar 7 points 1 year ago

Wouldn't recommend running ~~production services on~~ windows.

[–] [email protected] 1 points 1 year ago

Windows 10 LTSC (for me) generally has uptime that is the equivalent of any Linux box. I've been using it to host Plex for several years - before hardware transcoding support in Linuxv was really up to snuff.

LTSC is what Windows should be. It's a shame Microsoft doesn't make it available (legally) to normal consumers.

[–] [email protected] 8 points 1 year ago (2 children)

You have Windows Subsystem for Linux (WSL) which will allow you to run Ubuntu within Windows.

Or you have Docker for Windows which also utilises WSL in a similar manner.

So yes, although not a native Windows exe, it's perfectly possible.

[–] [email protected] 2 points 1 year ago

something to keep in mind is that both WSL2 and Linux container on Docker Windows use virtual machines
these come with a drawback of additional overhead or cheaper hosted VPS don't allow to nest virtual machines inside their cheap ones

[–] [email protected] 1 points 1 year ago

And definitely use WSL2.

[–] [email protected] 8 points 1 year ago

Maybe but it doesn’t seem like a terribly good idea. All prior art for Lemmy, and most serious server stuff on the Internet, is on Linux. It would be a lot of effort and would result in a worse solution than the tools that already exist.

[–] [email protected] 4 points 1 year ago

If you compiled from source maybe, but that's the point of docker, you can run docker containers anywhere

[–] [email protected] 2 points 1 year ago (1 children)

I believe it can be, but what I've found in general with respect to my fediverse journey is that pretty much everything is built for Linux. If you want to use windows, you'll likely have to blaze a trail for yourself.

I had one windows PC in my server farm initially, but installed Linux after I realized most things I wanted to run really wanted me to be running Linux.

[–] [email protected] 1 points 1 year ago (1 children)

There are lots of docker deployment examples, and no reason it shouldn’t run in docker on windows. It supports Ubuntu containers. https://docs.docker.com/desktop/wsl/

[–] [email protected] 0 points 1 year ago (1 children)

One thing to note with Docker on Windows is that it will be running the Linux subsystem on top of the Windows stuff when you run Docker, so there will be a performance hit to do that.

It will work, but not necessarily as well as you would like.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Wsl isn't actually slower, it uses a kernel personality mode thing that basically means Linux runs as a first class process.

The performance hit doesn't show up for most stuff, but iirc it does show up for some heavy io, networking and some synchronization.

[–] [email protected] 1 points 1 year ago (1 children)

Everyone else here is saying it’s not recommended. I’d agree with that. But I’m super curious to hear whether we can, not whether we should! So, OP: I say give it a go and report back what problems you run in to!

[–] [email protected] 1 points 1 year ago (1 children)

I leaned no one on Lemmy are as helpful as they seem. Nor as nice... I gave up on trying to run my own instance... My life is too busy and hard to find time for this anyway...

[–] [email protected] 2 points 1 year ago

Oh, I'm sorry that you found that :( Hopefully we can all help each other more :) If you have more time in the future I'm interested to hear how you go setting up Lemmy on Windows :)