I can compile or copy the
screen program that can run on the host. However, it reports:
“Cannot make directory ‘/var/run/screen’: Permission denied”
As screen is not installed on the host, the directory
var/run/screen/ does not exist.
/var/run/screen/ is the socket directory for
screen reads a environment variable
SCREENDIR to get an alternative socket directory.
So to work around it, you can create a directory, such as
mkdir ~/.screen && chmod 700 ~/.screen
and export the
SCREENDIR to point to that directory:
You can also put this line into you
~/.bashrc so that it will also take effect afterwards.