sanny32 / OpenModScan

Open ModScan is a Free Modbus Master (Client) Utility
MIT License
221 stars 27 forks source link

Ubuntu 24.04 installed application do not have rights to acces tty* #18

Open talenat-st opened 2 weeks ago

talenat-st commented 2 weeks ago

Installed deb do not have access to tty I think something should be done with that as only chmod 666 tty helps but until reboot. Deb package shoul deal with that.

ortegahernandes commented 1 week ago

Hello , the command to free the serial port in Ubuntu is

sudo adduser USERNAME dialout

And then restart the operating system. This fixes the release of the serial port

Alexandr can put it at the time of installation.

I also made Modbus software (Master/client) but at the moment it is not open source.

As mine doesn't have an installation (it runs directly) I left a warning, and whoever uses it has to carry out the command.

But sometimes I like to use his too, especially the (slave/server).

talenat-st commented 1 week ago

Hi, It is not a point of doing mysef when installation program should do this. I am aware of adding user to dialout group and as I already wrote I can chmod tty to use it while I need it but that is also not a point. My comment was in order to improve great progam even more.

ortegahernandes commented 1 week ago

The comment was just to avoid every time you restart the operating system you don't need to release the port.

with dialout it becomes permanent, that is, it can be restarted.

I agree with you that when installed, it would be good to have the serial port already released, especially for those who are not very familiar with Linux, which is why I also suggested dialout.

😉👍