Giter VIP home page Giter VIP logo

Comments (14)

xblahoud avatar xblahoud commented on September 17, 2024 2

Hi @milesbuckton, thanks! I just picked a wrong time. I can wait when you are done, no problem. Good luck!

from wsl2-popos.

xblahoud avatar xblahoud commented on September 17, 2024 1

Hi @milesbuckton ! Thank you for taking up on this. I would be glad to test. I can't find any changes in your fork, not even in the 20.10 branch. I remember to see some changes a few days back when I just glimpsed. Did you remove it? Or it's just me being stupid?

from wsl2-popos.

aidenfoxx avatar aidenfoxx commented on September 17, 2024

You're more than welcome to fork the repo!

The simplest way to upgrade would be to boot the provided export, upgrade to 20.10, then re-export the image using wsl.exe --export popos <ExportName>.

As for creating an image from scratch: that requires you to create a new WSL instance based on the pop_os filesystem image from the live iso. You can then manually configure things to play nice with WSL (check "config/.bashrc").

This guide seems to broadly match the steps I took: https://gist.github.com/artman41/858450e2c29b239d8692213b684ada25

EDIT: I forgot to mention, GNOME doesn't work well without systemd. To get this working, I compiled a systemd shim for WSL called genie (https://github.com/arkane-systems/genie) inside the WSL instance, which is triggered in .bashrc to initialize gnome with systemd.

from wsl2-popos.

xblahoud avatar xblahoud commented on September 17, 2024

Thanks!

I've tried to make a new image, but failed. The reason for the failure was that there is currently no support for Ubuntu/Pop 20.10 in Genie. A tried a few trials to make it work but I always failed, even with the latest release of Genie.

After two days of trials, I've decided to wait a bit and see if things evolve.

from wsl2-popos.

milesbuckton avatar milesbuckton commented on September 17, 2024

Hi @xblahoud, I managed to upgrade the Pop!_OS 20.04 instance to 20.10, then I built genie 1.34 (changed the systemd-timeout setting to 5s), and finally altered the .bashrc genie commands slightly. After this I was able to run Pop!_OS 20.10! πŸ˜„πŸ‘ See below:

image

You can review my fork for more details. It includes the WSL2 instance split into multiple volumes (due to the Github 100MB file size constraints)!

Thank you to @aidenfoxx for creating the base to make this all possible! ⭐I tried multiple times to get this right using the Ubuntu 20.04/20.10 base, but to no avail!

from wsl2-popos.

aidenfoxx avatar aidenfoxx commented on September 17, 2024

Nice! Good job man. Looks good to me, and if it works, it works.

I'm not gonna continue to support my repo since it was really just an experiment, but if you wanna keep it going, that's great. πŸ˜„

from wsl2-popos.

milesbuckton avatar milesbuckton commented on September 17, 2024

Thank you @aidenfoxx...I couldn't have done it without you! πŸ€œπŸ€› You did some great work here, and kudos for putting it out there. πŸ… I'd like to keep it going - and I'll try to contribute to it when I get the chance. Hopefully I can upgrade the 20.10 base to 21.04 when it comes out. πŸ˜‰

from wsl2-popos.

milesbuckton avatar milesbuckton commented on September 17, 2024

ℹ️ One thing I found out after the fact was to change one of the .bashrc config settings to: export LIBGL_ALWAYS_INDIRECT=0.
This enables OpenGL support which does work. πŸ˜„ See the Graphics property below, and compare it with the one above:

OpenGL

πŸ’‘ Bear in mind: this will need to be changed within the WSL2 instance sudo nano ~/.bashrc.

from wsl2-popos.

aidenfoxx avatar aidenfoxx commented on September 17, 2024

That works? When I set up the repo initially, I would get a black screen without setting LIBGL_ALWAYS_INDIRECT=1. Might be something that fixed itself with a later version of WSL. 🀷

from wsl2-popos.

milesbuckton avatar milesbuckton commented on September 17, 2024

It does...can you believe it!? πŸ˜„I tried it with Steam. 😎

from wsl2-popos.

milesbuckton avatar milesbuckton commented on September 17, 2024

Hey @xblahoud, you're welcome. πŸ˜„ Sorry, it's not you being stupid - I did remove it temporarily. I wanted to align my origin master (fork) with the upstream master. The reason is the following:

  1. I've created a feature branch called 20.10 where I'm still busy adding all the commits. (I should be done in the next 3 hours, or so.)
  2. I want to see if I can squash the feature branch 20.10 commits into my origin master with a pull request (PR). I'll let you know once I'm done.

from wsl2-popos.

milesbuckton avatar milesbuckton commented on September 17, 2024

Hi @xblahoud, OK - my idea πŸ’‘ worked - and it's done! πŸ˜ŽπŸ‘πŸ» You'll notice that my origin master is only one commit ahead now. I deleted the feature branch 20.10, as it's no longer needed. Please clone the repo, and test it. Let me know if it works for you. πŸ˜„

P.S. Try to switch on OpenGL (as described above) after you've tested that the non-OpenGL is working. πŸ˜‰ GNOME performs much better with OpenGL turned on! πŸš€

from wsl2-popos.

xblahoud avatar xblahoud commented on September 17, 2024

@milesbuckton, it works! Both the clean system and the OpenGL support. Thank you very much!

from wsl2-popos.

milesbuckton avatar milesbuckton commented on September 17, 2024

It's my pleasure @xblahoud...I'm delighted that it all worked out in the end!πŸŽ†πŸ™ŒπŸ»πŸΎπŸ₯‚ Thank you for taking the time to test on your side! 😎 Enjoy. 🍸

from wsl2-popos.

Related Issues (3)

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.