area515 / Photonic3D

Control software for resin 3D printers
http://photonic3d.com
GNU General Public License v3.0
131 stars 115 forks source link

Fall back on systemd if init.d isn't available #344

Open kisnoge opened 6 years ago

kisnoge commented 6 years ago

Are anyone successes install photonic3d on linux system? I get error message as below. ==========================message start================ sudo ./start.sh Local Config: /root/3dPrinters/config.properties mv: cannot stat ‘cwh-.*.zip’: No such file or directory Checking for new version from Github Repo: area515/Creation-Workshop-Host grep: build.number: No such file or directory ./start.sh: line 113: curl: command not found Local Tag: Network Tag: Couldn't fetch version from GitHub, launching existing install. Turning off screen saver and power saving No protocol specified xset: unable to open display ":0.0" No protocol specified xset: unable to open display ":0.0" No protocol specified xset: unable to open display ":0.0" Installing CWH as a service cp: cannot stat ‘/opt/cwh/cwhservice’: No such file or directory chmod: cannot access ‘/etc/init.d/cwhservice’: No such file or directory update-rc.d: error: initscript does not exist: /etc/init.d/cwhservice Determinging if one time install has occurred grep: /root/3dPrinters/config.properties: No such file or directory Starting printer host server ==========================message end================

How to solve the problem ?

WesGilster commented 6 years ago

You need to install curl first and try again. What version of Linux do you have that doesn't have curl installed? Just curious.

On 11/20/2017 12:42 AM, kisnoge wrote:

Are anyone successes install photonic3d on linux system? I get error message as below. ==========================message start================ sudo ./start.sh Local Config: /root/3dPrinters/config.properties mv: cannot stat ‘cwh-.*.zip’: No such file or directory Checking for new version from Github Repo: area515/Creation-Workshop-Host grep: build.number: No such file or directory ./start.sh: line 113: curl: command not found Local Tag: Network Tag: Couldn't fetch version from GitHub, launching existing install. Turning off screen saver and power saving No protocol specified xset: unable to open display ":0.0" No protocol specified xset: unable to open display ":0.0" No protocol specified xset: unable to open display ":0.0" Installing CWH as a service cp: cannot stat ‘/opt/cwh/cwhservice’: No such file or directory chmod: cannot access ‘/etc/init.d/cwhservice’: No such file or directory update-rc.d: error: initscript does not exist: /etc/init.d/cwhservice Determinging if one time install has occurred grep: /root/3dPrinters/config.properties: No such file or directory Starting printer host server ==========================message end================

How to solve the problem ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/area515/Photonic3D/issues/344, or mute the thread https://github.com/notifications/unsubscribe-auth/ACT_NBRNAk39FceQzIRiBaLFZOLbDwNnks5s4R9cgaJpZM4Qjzfq.

kisnoge commented 6 years ago

problem still here. the error message as below, and my system is ubuntu 16.04

==================error start================== After this operation, 306 kB of additional disk space will be used. Get:1 http://tw.archive.ubuntu.com/ubuntu xenial/universe amd64 dos2unix amd64 6.0.4-1 [68.7 kB] Fetched 68.7 kB in 0s (462 kB/s) Selecting previously unselected package dos2unix. (Reading database ... 173523 files and directories currently installed.) Preparing to unpack .../dos2unix_6.0.4-1_amd64.deb ... Unpacking dos2unix (6.0.4-1) ... Processing triggers for man-db (2.7.5-1) ... Setting up dos2unix (6.0.4-1) ... W: --force-yes is deprecated, use one of the options starting with --allow instead. grep: /etc/init.d/cwhservice: No such file or directory chmod: cannot access '/etc/init.d/cwhservice': No such file or directory Turning off screen saver and power saving Installing CWH as a service Determinging if one time install has occurred grep: /home/pi/3dPrinters/config.properties: No such file or directory Starting printer host server ===============error msg end==================================

WesGilster commented 6 years ago

Could you describe what problem you are having?

WesGilster commented 6 years ago

It does look as though we may have to start supporting upstart instead of the old fashioned init.d. I believed Ubuntu supported both, however it looks that's not true. Until then, you'll have to start Photonic manually instead of having it automatically start when your system starts.

kisnoge commented 6 years ago

Finally I could running webpage, but 1.It could not connect mega board when add new printer. 2.The jdk is also renew "jdk-8u102-linux-x64.tar.gz" is not working. so I change to jdk-8u154-linux-x64.tar.gz and use mirror site. 3.I found cwservice is not running, seems still something still wrong. 4.the system is run on Ubuntu 16.04 LTS. May I have install manually step with Phoeonic3d?

  1. Is install Ubuntu 14.0x could solve these problem?
WesGilster commented 6 years ago

1.It could not connect mega board when add new printer. Please post the diagnostic dump download and open a different issue, it has nothing to do with issue.

2.The jdk is also renew "jdk-8u102-linux-x64.tar.gz" is not working. so I change to jdk-8u154-linux-x64.tar.gz and use mirror site. Photonic3D will work with both of those.

3.I found cwservice is not running, seems still something still wrong. Read my previous post. I already mentioned in my previous post that you'll need to manually start Photonic3D instead of it starting by itself on bootup. This has no operational effect on Photonic3D itself.

4.the system is run on Ubuntu 16.04 LTS. May I have install manually step with Phoeonic3d? Not sure what you mean here, but you've already successfully installed Photonic3D.

  1. Is install Ubuntu 14.0x could solve these problem? No, your version of Ubuntu is just fine.
kisnoge commented 6 years ago

Thanks a lot for early reply. It's already solve most problem. Latest question,

  1. How to manually start Photonic3D ? so I could do autostart at boot, if I can manually start Photonic3D.

  2. May I use first display and it's only one display for dlp print? All controll will from remote webpage. How to setup this?

WesGilster commented 6 years ago
  1. You can start it a million ways with Linux and you are already manually starting it with start.sh. Here are 3 possible ways: a. Just call start.sh. That's what you are doing now. b. Install /opt/cwh/cwhservice into init.d. This is what Photonic3D already attempts to do by itself. Since your system doesn't have init.d, this isn't a great option. C. Your best option is to use upstart: http://upstart.ubuntu.com/. Once you install Photonic3D with upstart, post your solution here and we'll add it to Photonic so others that don't have init.d can autostart Photonic3D as well.

  2. Yes. The first display in Linux is generally numbered :0.0 under xWindows. If this is all too confusing, just choose "First available display". If you only have 1 display, it will pick that one.

DanielJoyce commented 6 years ago

init.d is largely dead and upstart is deprecated. All the big distros are moving to systemd.

WesGilster commented 6 years ago

Updated title to move to systemd.