• 0 Posts
  • 3 Comments
Joined 3 years ago
cake
Cake day: July 2nd, 2023

help-circle

  • Yeah ok, that makes more sense. Some starting points (arch user by practice, but Mint will have similar interfaces):

    • use DPMS to turn screens on and off dynamically. This would be to put a monitor to sleep.
    • I would think there is a kernel parameter to either disable a display output or the driver used by the laptop display.
    • I believe “agetty” is the program that gives you a terminal on a display. Thile general term for what you are interacting with is a getty. You can see an example of setting up a generic automatic login in section 2.3.1 of that link.
    • The easy way out to run a command on start is to run bash, then have the command in the bottom of your .bashrc file.
    • the slightly better way to do this is to create a new user that will be just for this purpose (like a service account).
    • the better way would be to run the command straight through the terminal, instead of starting a shell in interactive mode. This would be replacing ${TERM} with something like /bin/sh -c '/bin/htop'.
    • I’m not sure how you could get a specific tty on a specific monitor, but I would expect there is a way to do it through the kernel parameters. This probably isn’t needed as you don’t plan on having another screen anyway. You could just use tty1 and be done with it.
    • the other thing you may want to do is to set “quiet” mode in the kernel parameters, as the system may print status messages onto the tty be default.

  • The people here talking about a display server (x11/Wayland) are missing your point I think. If you put a display server on this “box” then it will become a normal server, not a headless one. At that point, you may as well run a full VM and have the output go wherever you want, etc. I’m not sure what the equivalent is in the docker world, but I’m pretty sure that’s not what you’re asking for.

    Is it possible for you to get SSH running on this “server”? If so, you may be able to set it up with an SSH client on the host PC (the laptop?) that is full screen on the CRT/HDMI output?

    Maybe I’m misunderstanding as well though. Any headless server I’ve used in Linux will still give you a TTY on the display. Do you not get that? Someone else mentioned Getty, which is likely the service that is managing that. You should be able to configure Getty to give you a specific tty (e.g. tty9) on a specific output, then configure it either to autologin or to run a script on that tty.