Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to increase shared memory size? #82

Closed
impromedia opened this issue Jan 2, 2023 · 1 comment
Closed

How to increase shared memory size? #82

impromedia opened this issue Jan 2, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@impromedia
Copy link

impromedia commented Jan 2, 2023

I want to run an Ubuntu game inside the container and I need to increase the shared memory size.
I've tried on the neko-rooms ADD ROOM / expert setings to add a new key shm_size and value '16gb' without success.
It seems that the value of shm_size is hardcoded to 2GB
Can you help me? Thank you.

@m1k1o
Copy link
Owner

m1k1o commented Jan 2, 2023

It is available in API but currently not in GUI.

You could add it to default room variables, that are stored in VUEx store. Run this in your console:

// from https://stackoverflow.com/a/69466883/1113204 
var vue = Array.from(document.querySelectorAll('*')).find(e => e.__vue__).__vue__
// set custom settings
vue.$store.state.defaultRoomSettings.resources =  { shm_size: 3000000000 }

Every room created in that page (until refreshed) will have specified values.

@m1k1o m1k1o added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 7, 2023
@m1k1o m1k1o closed this as completed in ac07cb5 Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants