Add option to use SCREEN instead of X for remote console #81
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch changes dw-start.sh to give the option to use SCREEN as the execution display. SCREEN is a text based terminal multiplexer (think lxterminal for text, with tabs and the like) and works great for detached/remotely running applications, without the overhead of X, and then attaching as needed via SSH or the like. If you have screen installed, you can specify it in the dw-start.sh script in the USESCREEN variable at the top of the file.
If USESCREEN is specified, then after the 30 second wait, the script will check to see if there is an existing SCREEN session named "direwolf", if not then it starts it in the background. Next, direwolf is started in its own screen in side of the "direwolf" screen session.
To attach to this screen remotely, you can ssh in and then execute "screen -S direwolf -D -RR" and monitor direwolf. If you want to detach, you can use C-x C-d to detach and you can then reattach later or leave it running.
I moved a few items around because the screen section will need some of those variables sooner than the X stuff that is left alone at the bottom.
Tested on my RPi from command line and through reboots.