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 run LM Studio on linux from console? #102

Open
exelents opened this issue Nov 9, 2024 · 4 comments
Open

How to run LM Studio on linux from console? #102

exelents opened this issue Nov 9, 2024 · 4 comments

Comments

@exelents
Copy link

exelents commented Nov 9, 2024

How to run LM Studio on linux from console?
I have an AppImage on my server, but it cannot run without X server session. Do LM Studio has a console API server at all?

I tried to run this command

~/.cache/lm-studio/bin/lms bootstrap
But folder lm-studio does not contains bin folder.

@exelents
Copy link
Author

exelents commented Nov 9, 2024

What I need to install else to get this API server?

@a1rishav
Copy link

Can you try : ~/.lmstudio/bin/lms bootstrap

@bipin-lekhak
Copy link

Same issue. Tryng to run the AppImage without X server, I get:

Setting fork function. Is it node?  false
[507368:0126/124336.902232:ERROR:ozone_platform_x11.cc(245)] Missing X server or $DISPLAY
[507368:0126/124336.902268:ERROR:env.cc(258)] The platform failed to initialize.  Exiting.
[1]    507368 segmentation fault (core dumped)  ./LM-Studio-0.3.8-4-x64.AppImage

A new folder .lmstudio seems to have been created and populated as:

.lmstudio
├── .internal
│   ├── cached-rag-pipeline-chunks
│   ├── config-presets-drafts
│   ├── retrieval-sessions
│   ├── staged-updates-app
│   ├── temp
│   ├── temp-downloads
│   ├── ui-state
│   ├── user-concrete-model-default-config
│   └── utils
├── bin
├── config-presets
├── conversations
├── credentials
├── extensions
│   ├── backends
│   ├── frameworks
│   └── plugins
├── hub
│   └── presets
├── models
├── server-logs
└── user-files

As you can see .lmstudio/bin is empty.

@hanc2006
Copy link

same issue. You can fix 👍

First install
sudo apt-get install xvfb

Then run
xvfb-run --auto-servernum /opt/lm-studio/lm-studio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants