There is a comment on Nanalegumene's site which says screen wouldn't work on the mybook so we should use dtach. I found dtach to be inadequate for my needs. So I decided to hack out a way to make it work.
- The Man Page
- Gnu page
- Savanah Page
Having gotten it working here's what I did (as root).
- mkdir /tmp/myfiles # Create a directory under /tmp called 'myfiles'
- cd /tmp/myfiles # Change to the directory in order to work there
- wget ftp://ftp.gnu.org/pub/gnu/screen/screen-4.0.2.tar.gz # grab the file
- tar -xvf screen-4.0.2.tar.gz # unpack the file
- cd /tmp/myfiles/screen-4.0.2 # change into the directory.
- ./configure # If you fail to include the "without" statement Time: 1m44.111s
- nano pty.c #now you have to edit the pty.c file using your favorite editor. You might have to use vi if you haven't installed nano. on line 38 it reads # include <sys/stropts.h> You have to comment that out by surrounding it with slash star as in: /* # include <sys/stropts.h>*/. The reason being the make will fail because stropts.h is not included in your /sys directory. By examining the 38th line of pty.c we find that stropts.h is called when HAVE_SVR4_PTYS exists. I don't know how to counteract that another way besides removing that include. (source)
- make # Time about 7 Minutes
- make install
- install -m 644 etc/etcscreenrc /etc/screenrc #you might want to edit /etc/screenrc with your favorite editor.
- cp ./screen /bin # I'm not sure why make install didn't install screen somewhere on the path. But running locate didn't find it anywhere but the source directory.
That's it. You now have a functioning terminal multiplexor with all the trimmings.
If you want to skip all this you can Download the executable screen and the screenrc file from my website.
Hat tip to BLFS