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

Linux Install destroys Config. NO WARNING #354

Open
TecDroiD opened this issue Mar 25, 2021 · 10 comments
Open

Linux Install destroys Config. NO WARNING #354

TecDroiD opened this issue Mar 25, 2021 · 10 comments

Comments

@TecDroiD
Copy link

i installed your product on my system not knowing that it completely destroys configuration.
There was no warning on your page and i am unable to work anymore.
What the **** do yo do in your scripts and how can i uninstall your shit?

@thetrebor
Copy link

Not a maintainer: Presumably you just ran start so it does this:
https://github.com/area515/Photonic3D/blob/master/host/bin/start.sh

looks like it installs java JRE and updates init.d and such to make it easy to put on a RPi. Guessing you ran this on your workstation in not a VM or an RPI. Maybe you could reverse the changes in that file and hope for the best. Good luck!

@TecDroiD
Copy link
Author

problem is, it always runs a root desktop when i restart the machine. cannot get back to my normal workstation desktop.
What did they do to do that?

I didn't install a Raspberry Pi version so my believe was that i get a background process which i can use in a browser.

@thetrebor
Copy link

thetrebor commented Mar 25, 2021 via email

@TecDroiD
Copy link
Author

which things?

@thetrebor
Copy link

thetrebor commented Mar 25, 2021 via email

@sobryan
Copy link
Contributor

sobryan commented Mar 25, 2021

According to the start script:
https://github.com/area515/Photonic3D/blob/master/host/bin/start.sh : line 172
This is run:
update-rc.d cwhservice defaults

To remove this, I think you want to execute this as root to remove the service and restart
sudo update-rc.d -f cwhservice remove

@TecDroiD
Copy link
Author

i basically did this but by hand. Seems, systemd runs init scripts to create virtual service units.. this way, it already started x..
Why does this call startx? all the init script should do is running the jar.
To my mind it's an absolute nogo to run anything as root. Especcially on anything else than a raspberry pi.

@sobryan
Copy link
Contributor

sobryan commented Mar 25, 2021

Good deal - what worked for you (in case someone else needs this)?
I think would probably work as well
chmod -x /etc/init.d/cwhservice

On quick glance, I'm guessing startx is called to create a display that the java application can use.

@WesGilster
Copy link
Contributor

It is needed for Java but that's not why Photonic required it. It is required if you want to use the embedded browser to control the printer. If you'd like to support multiple screens(LCD screens) with the Raspberry Pi, your options are somewhat limited. The route we took was:

  1. X Windows (which doesn't support multiple monitors on the Raspberry Pi)
  2. Low Level DispmanX drivers for rendering (requires Root)

@sobryan
Copy link
Contributor

sobryan commented Mar 25, 2021

Added a note to the linux section as suggested - hope this helps!
d5b03d5
c8ee714

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