screen a serial get could not find a PTY Error
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Droplet of life
--
Chapters
00:00 Screen A Serial Get Could Not Find A Pty Error
00:25 Accepted Answer Score 19
00:45 Answer 2 Score 2
01:02 Answer 3 Score 1
02:53 Thank you
--
Full question
https://superuser.com/questions/1345069/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#macos #display #serial
#avk47
ACCEPTED ANSWER
Score 19
Finally, I find the solution, there are a screen process not close normality.
So, in the Activity Monitor I closed it, then re-start the screen, it works.
ANSWER 2
Score 2
In my case simply unplugging the device from the computer (i.e., USB to serial adapter) then plugging back in again cleared the issue.
ANSWER 3
Score 1
I had a similar problem and I attempted a number of different solutions. Just wanted to share what made it work for me.
Problem
Tried to use the screen program to connect my lab PC to a Raspberry PI via the USB ports and an RS232 cable.
Ran the command screen /dev/ttyUSB0
Got the following error messages in quick succession.
"Cannot access line '/dev/ttyUSB0 for r/w: permission denied"
"Couldn't find a PTY"
Attempted solutions
I tried to look in the activity monitor to see if there are any processes running, and there was none. So this was not the problem.
Tried to change the /dev/ptmx file permissions
Ran the command ls -l /dev/ptmx
Output crw-rw-rw- 1 root root 5, 2 "datetime" /dev/ptmx
So it looked like the permission were already set. So this was not the problem either.
- Tried to mount /dev/pts by running
sudo mount devpts /dev/pts -t devpts -o mode=620
I got the message that the mounting was already done. Move on.
- Finally found this idea of adding to the dialout group looking at this post.
https://askubuntu.com/questions/58119/changing-permissions-on-serial-port
Ran the command - sudo usermod -a -G dialout $USER
Restarted the computer and voila, it worked. Was able to use screen program to make the connection.
Spend a few hours to figure this out. Hope this helps someone out. Peace.