Linux terminal ->HDMI->Thunderbolt converter->iMac?

I have a Linux server that I access from my iMac using terminal or XQuartz. I have a monitor on my desk for when I need a real, primary Linux terminal (say, to install a new OS). For those times, I have a bi-directional HDMI switch that connects to the server, the Linux monitor, and the iMac (using an HDMI to Thunderbolt converter).


It sure would be nice to get the Linux monitor off my desk and run HDMI directly from the server to the iMac via the converter. In my mind, I would do something on the iMac to toggle between the internal iMac display and input from the server.


Is this possible?

Thanks!


Posted on Jun 5, 2020 3:45 PM

Reply
5 replies

Jun 6, 2020 8:04 PM in response to code_wait

Which vendor and which model server? BMC, iLO, DRAC, IPMI hardware? KVM hardware?


Some Linux servers offer iLO (HPE), DRAC (Dell), or similar remote management. If your Linux server includes that or can be upgraded to include remote management, that’s usually the best and most flexible path. That will offer full remote management, including remote power management. (I routinely administer servers located on other continents using these features, including installations and upgrades and remote troubleshooting.)


If you’re on server gear lacking remote management hardware options, then a network KVM is an option. That’s effectively what you’re envisioning, though yes, you’d probably rather plug in the cables directly rather than through a network connection.


The cheap way to do what you want is a USB-to-serial adapter, and a serial cable into the COM1 console, if your server includes a DB9 console. I use a Plugable adapter for that, though there are other adapters with support. The Prolific PL2303 is fairly commonly supported. This assumes you have a DB9 console port, obviously.


If your Linux distro boots into an ssh console as many can do and that’s really handy for booting in a hosted environment, that’s the cheapest path.


Jun 6, 2020 7:26 PM in response to code_wait

If the only time you use a monitor on the Linux system is to install a new OS, then you could create another minimal bootable Linux installation on that Linux system in a small partition. Then ssh into that minimal system so you can run a Linux installer to use on the main partition. If you are using a Debian based system, then you can use debootstrap to install the OS to the main partition. Of course if the system doesn't reboot properly you may still need to connect a monitor to the Linux system to fix the issue if you cannot reboot back to the minimal Linux installation. It may take a little bit of practice to make this work depending on the hardware used as it can affect your ability to boot to the minimal Linux install again.


While I didn't do this on a headless system I was doing something similar to have multiple boot options on a single drive. I created a minimal Linux install and customized the GRUB2 boot menu so that GRUB2 would always boot to the GRUB2 config for my minimal install and I would manually add the other Linux installs to this menu. Making the main Linux install the default will allow you to reboot the system normally and having a sufficient pause for GRUB2 to allow you time to manually select the second menu option for the minimal install should allow you to remotely manage this system even when the main install doesn't boot. If you remember to customize the GRUB2 boot menu before rebooting you should be able to manage the headless Linux system remotely.

Jun 5, 2020 7:15 PM in response to code_wait

Not sure on the HDMI to Thunderbolt converter, but...


You can connect any of these older iMac models to another Mac from 2019 or earlier for use as an external display. Learn how to identify your iMac model.

Target display mode requires macOS High Sierra or earlier on the iMac used as the external display. It does not work with macOS Mojave or later.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Linux terminal ->HDMI->Thunderbolt converter->iMac?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.