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

Allow starting serial server under root user #142

Closed
KennyVB opened this issue Jan 10, 2025 · 11 comments
Closed

Allow starting serial server under root user #142

KennyVB opened this issue Jan 10, 2025 · 11 comments
Labels
enhancement New feature or request next-release Issue is fixed/implemented but not released yet

Comments

@KennyVB
Copy link

KennyVB commented Jan 10, 2025

LOVE THE NEW UPDATE

how ever, the ESP is not visable on the system as per say /dev/ttyUSB noir in by-device
so i can't get it to connect, just updated the device from webinstaller, and made the host install, no error in systemctl --user status so guessing it works, but dont think it can find the esp, as i cant find it on the subsystem. using btt pi1.2 but it's just linux

@suchmememanyskill
Copy link
Owner

Any info in dmesg?

@KennyVB
Copy link
Author

KennyVB commented Jan 11, 2025

none about it finds the esp. only my webcam tho

@suchmememanyskill
Copy link
Owner

I'm unsure how i can help you here. Maybe the drivers shipped in your flavor of linux don't include usb serial? Maybe you're not using a data usb cable?

@KennyVB
Copy link
Author

KennyVB commented Jan 18, 2025

linux works, usb devices work, somehow, the cyd doesnt show up. can find multiple other devices in usb. so what gives. not sure whats in the firmware your putting out tho

@KennyVB
Copy link
Author

KennyVB commented Jan 18, 2025

using the usb-c btw

@KennyVB
Copy link
Author

KennyVB commented Jan 18, 2025

Image

so it only runs, when i'm logged in with ssh..

@suchmememanyskill
Copy link
Owner

Configuration issue from your side, i'd say. The user you install it under does need to always be running

@KennyVB
Copy link
Author

KennyVB commented Jan 19, 2025

well you made it installed in user space, which for many isent configured.
dont understand why it has to run there, just a service file

@suchmememanyskill
Copy link
Owner

suchmememanyskill commented Jan 19, 2025

Not really. Imo it's good practise, but i didn't think there would be instances where the printer didn't run under the current user.

Iirc in mainsailos you log in as the same user as that runs Klipper.

Either way, would you mind making a pr for this, to run it as root? (Remove the user bit)

If you do, please target the dev branch.

@suchmememanyskill suchmememanyskill changed the title serial/usb connection Allow starting serial server under root user Jan 28, 2025
@suchmememanyskill suchmememanyskill added the enhancement New feature or request label Jan 28, 2025
@suchmememanyskill
Copy link
Owner

@KennyVB I just added a fix in the dev branch to install the service as root (uninstall first, then just sudo ./install.sh. You will be asked if you want to install under the root user). Can you give this a try?

@suchmememanyskill suchmememanyskill added the next-release Issue is fixed/implemented but not released yet label Feb 1, 2025
@KennyVB
Copy link
Author

KennyVB commented Feb 2, 2025

wonderfull work champ! thank u!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request next-release Issue is fixed/implemented but not released yet
Projects
None yet
Development

No branches or pull requests

2 participants