clementgallet / libTAS

GNU/Linux software to (hopefully) give TAS tools to games
GNU General Public License v3.0
493 stars 58 forks source link

automated vm setup #259

Open madewokherd opened 5 years ago

madewokherd commented 5 years ago

This is more of a brainstorming bug for now than something actionable. I've been spinning my wheels since learning that I need software GL (and thus mesa drivers) for save states to work properly. I don't want to change the proprietary nvidia drivers on my host system. So far I haven't been able to set up mesa locally, I'm not sure if it's even possible. If I'm going to set up a new Linux install for this, I want to automate it so the time I spend learning how to do this isn't wasted.

System requirements that I know of:

Nice to have:

I need to choose a distribution as well as a technology for automating the install.

My go-to for automating vm setup is Vagrant. It can work with X11 forwarding through ssh, but this requires extra setup on a Windows host.

Another possibility is to create a Virtual Appliance that VirtualBox can import. This may require some manual effort on my part for the VirtualBox side, but most distributions provide some mechanism to automate an install.

Are there other options I'm missing?

I also don't know what distribution is best for this. Here are a couple I'm considering.

Gentoo - Pros:

Debian - Pros:

Any thoughts or other suggestions welcome.

madewokherd commented 5 years ago

I made some progress using a preseed file with Ubuntu/lxde. Pulse at least uninstalls cleanly, and I have llvmpipe. I've learned that the current binary packages require bionic for libavutil55.

clementgallet commented 5 years ago

I'm not sure if PulseAudio must be disabled now, as of 77c2229bf9cb21ec11557d3cbd45cd1837b27931 (still better if it could). Yeah, there's a thing with ffmpeg libraries that were renamed (now libavutil56 and libswresample3) because of incompatibilities. I may provide both packages for the next releases.

madewokherd commented 5 years ago

The nice thing about using a script is that I can easily change such things. I'll use whatever is the recommended version.

madewokherd commented 5 years ago

I made a repository for my preseed script: https://github.com/madewokherd/libtas-vm

In theory, it should download and install the .deb. I don't have time to test it today.

I would also like to enable autologin and put a shortcut on the desktop.

madewokherd commented 5 years ago

I'm happy with where this is now, but the exported vm is 1.8 GB, and I'm not sure why it's so big.

madewokherd commented 5 years ago

https://github.com/madewokherd/libtas-vm/releases/tag/v1.3.4-1