Mogman
I am a newbie to all of this, would like to build a small PLC/HMI for my small ranch to monitor temps, levels, pump status etc.
I have tried to install the openplc on three different machines, 32/XP 32/7 and a 64/7, when I try to open runtime I get "Cygwin not installed launch openplc installer again" of course that does not help.
Please be kind as I am obviously just really stupid...
Reply 0 0
thiagoralves
Installation instructions for Linux are different then for Windows. You must extract the contents of the zip file and then run the installer:
unzip OpenPLC_Editor\ v1.0\ -\ Linux.zip
cd OpenPLC_Editor
./install.sh

Hopefully, after running the installer, you will see OpenPLC Editor shortcut on the applications menu
Reply 0 0
Mogman
Cannot get that command to run
mogman@mogman-Linux:~$ unzip OpenPLC_Editor\ v1.0\ -\ Linux.zip
unzip: cannot find or open OpenPLC_Editor v1.0 - Linux.zip, OpenPLC_Editor v1.0 - Linux.zip.zip or OpenPLC_Editor v1.0 - Linux.zip.ZIP.
mogman@mogman-Linux:~$ cd OpenPLC_v3
mogman@mogman-Linux:~/OpenPLC_v3$ unzip OpenPLC_Editor\ v1.0\ -\ Linux.zip
unzip: cannot find or open OpenPLC_Editor v1.0 - Linux.zip, OpenPLC_Editor v1.0 - Linux.zip.zip or OpenPLC_Editor v1.0 - Linux.zip.ZIP.
mogman@mogman-Linux:~/OpenPLC_v3$
Reply 0 0
thiagoralves
You gotta type those commands from the folder where you downloaded the zip file (probably ~/Downloads). As you said, working with Linux is not the same as working with Windows. On Linux you gotta use some terminal kung-fu to get around. 
Reply 0 0
Mogman
every folder is empty but for the home folder, cannot change directory to home
Reply 0 0
thiagoralves
Then you haven’t downloaded the file. Download it from the openplcproject website (getting started -> OpenPLC Editor -> download the Linux version) and make sure you save it in a location you know. Then open terminal and go to the folder where you downloaded the zip file and type the commands I mentioned earlier
Reply 0 0
Mogman
The download goes to a Archive manager and is extracted to downloads, I can go to the openPLC_editor directory but non of those commands work, when I was complaining about not being able to find "file>preferences" it was in Arduino IDE, so I am totally confused now
Reply 0 0
Mogman
OK it looks like the light came on for at least installing programs.
Reply 0 0
Mogman
OK so I ran the
./install.sh on the editor and the IDE both looked like they installed, but there is no indication of the editor anywhere but in the downloads.
II do however have an icon and can launch the IDE from my desktop.
Reply 0 0
thiagoralves
This is a fundamental difference between Linux and Windows. Linux is based on shared libraries, so that if two programs use the same library for a function you don't have multiple copies of that library on the system. Therefore, "installing" a program on Linux usually boils down to installing its dependencies and libraries. That's what the OpenPLC Editor installer does. The contents of the OpenPLC_Editor folder in your downloads folder are actually only executables for the editor, that's why the download size for Linux is a lot smaller than the Windows one.
Reply 0 0
Mogman
Well I guess that is it for me today, my head is about to explode, I can see no way to execute editor, I have to open a terminal and write commands to start OpenPLC before browsing to it, I just tried to load Virtualbox, I go to the site, pick 18.04 say yes to opening it in "software install" but after it loads all I have is a page that has only one option, to remove Vitualbox, will this day never end....
No mater how much wasted space and redundant files windows has it is looking pretty good to me right about now.
I am beginning to suspect Linux was never intended for "regular folks" just computer geeks. 
Reply 0 0
thiagoralves
Yes, Linux is a different concept, and is not intended for regular users, unless in very specific cases where it comes pre-configured for some task (like sales point kiosks, etc). Linux give you more power over your machine if you know how to use it. If you're a regular user and just want to get things done, Windows is definitely a better option. Why have you migrated to Linux? I thought you had success installing OpenPLC on your Windows machine.
Reply 0 0
Mogman
Unfortunately only time I have EVEN come close is on my daily machine and only if I log in as admin, which I do not want to do, going back and forth all the time, besides I want a dedicated machine. (and a laptop for development/playing/goofing off at work)
I tried it on a HP laptop with 32 bit win7 pro today (is a 64 bit machine but only has a 32bit OS) and could never get past "Cygwin not installed" even though I was logged in as the admin. spent 3 hrs or so on that and of course had Cygwin installed. (had all of it installed uninstalled cleaned up and reinstalled a dozen times at least)
Scratched a hard drive and loaded 16.04 and had the same issue with runtime not running automatically but could start it in terminal, never figured out how to run editor after installing it even though it looked like it installed correctly (same issue on 18.04) another 3 hours or so....
 I am going to install 64bit win7 pro on both the HP laptop and the Shuttle that I will be getting tomorrow and will try again with fresh win installs (I am running low on my stashed win7 loads) when I do I am going to try and make sure they have only an admin user. (win 7 makes it a little tough as they don't want to make it easy to have an unlimited admin account)
 I feel like the dumbest guy on the planet but I am not ready to give up just yet.....and I have a killer headache........Time for some adult beverages.......
The reason I tried Linux is because it was said that it would run much easier on Linux as that is what it was written for, but even following what are very simple steps the runtime will not operate as it should.
Reply 0 0
thiagoralves
I created OpenPLC with ease of use in mind. Most people can get around the installation without issues. It is really frustrating to see that you’re struggling so hard with that on so many different machines. I can not reproduce the errors you’re facing, and I’m wondering what could be different in your setups that is not letting you just install it right. If you want I can remote access one of your machines and have it all installed for you. You can pick Linux, Windows, whatever OS you want. If you have a fresh machine it’s better, but it should work on anything you have. Just let me know and we can setup a conference call with remote access or something like that.
Reply 0 0
thiagoralves
After your tale of horrors with OpenPLC installation on Linux, I decided to spend a few minutes checking the installer again on a fresh Ubuntu machine, and in fact you are right. Apparently, recent updates on Linux packages broke some of the libraries required by OpenPLC, which ultimately lead to a bad installation. I fixed the installers (for both OpenPLC Runtime and the OpenPLC Editor) to reflect these library changes. Everything should work well now. I just tried installing OpenPLC Runtime and OpenPLC Editor on a fresh Ubuntu 19.04 machine and it worked as it should, out of the box, with zero issues. You don't even have to update anything after installing Ubuntu. Just let OpenPLC installer update everything for you, and it should work. Sorry for the inconvenience this has caused to you!
Reply 0 0
Mogman
Thanks, I will give it a shot, will it work on 18.04? 19.04 is going to take several hours to load
EDIT scratch that I will wait.
Reply 0 0
Reply