I have a raspberry pi with a screen attached to it. It boots up to a login prompt. I have no keyboard and no mouse attached to it and would like to keep it this way. I proceed to login to it via ssh from network, but would like to see the commands that I enter through ssh and their output on the attached screen. Would this be possible?
|
If you have One thing For example:
I have just run (basically) the above command from my android tablet terminal after switching out of For this to work, if your
...if you want it to be. On my system my user account is a member of the
...as you can see, it is a root-owned device file, but is designated to the In any case, running the above |
||||
|
Interesting, I also thought of Working configuration for supervisor:
It automatically switches to You need root privilege to attach the screen session because it's run by root. You might want to enable screen's multi user mode, but it needs setuid on |
|||||||||
|
I'm not sure whether there might be a more "direct" solution involving only redirecting inputs and outputs, but I did manage to make something like this work using screen. The idea is to do all your work inside a First, you will need to know the name of the terminal for the attached display. I don't have a rPI to test with but I assume the directly attached screen gets mapped to the regular Linux video console, so it's probably going to be
If the name of the terminal for the rPI's video console is not |
|||
|