screen Cannot open your terminal '/dev/pts/0' - please check
This happens because you may have done a sudo su user_name
and then fired the screen command.
There are 2 ways to fix this.
- Login directly to "user_name" via ssh.
- Take ownership of the shellby typing
script /dev/null
as the useruser_name
and then typescreen
To solve the problem try running script /dev/null
as the user you su
to before launching screen
.
script -q -c "su $USER -l -c \"screen -m -d -S $NAME $DAEMON start\"" /dev/null
More on it:
Run this command to own the shell
#script /dev/null
and try Screen
#screen -r < name of the screen >