It has long been common to collect a large number of PCs, install GNU / Linux, and perform parallel programming High Performance Computing % 80% A7% E8% 83% BD% E8% A8% 88% E7% AE% 97).
Recently, Windows 7 has reached EOL, and a large number of discarded PCs have come out, so it may be possible to collect them and build an environment for HPC.
At this time, even if GNU / Linux is started and left unattended, it is necessary to set the personal computer so that it will not be suspended. In particular, if you are using a laptop computer as a server, be aware that by default it will suspend automatically after a certain period of time.
Therefore, I will describe the place to set.
The distribution should be Debian 10 or Ubuntu 18.04 LTS.
Normally, if you use it for parallel computing, you will install it with CUI, but in recent versions, it will be suspended by default. This can be avoided by setting systemd.
/etc/systemd/logind.conf
HandleLidSwitch=ignore
After writing the above, restart systemd.
systemctl restart systemd-logind.service
This is OK.
It is conceivable to install a desktop environment on the master node or operation monitoring node for the purpose of Connecting to GNU / Linux with remote desktop.
/etc/gdm3/greeter.dconf-defaults
sleep-inactive-ac-timeout=0
sleep-inactive-battery-timeout=0
There is an item called Automatic suspend near the end of the configuration file, so set it as above. Now, even if you leave the login screen as it is, it will not be suspended without permission.
Note that this file should be a symbolic link from the file under / usr / share / gdm / dconf /, so it's a good idea to check that as well.
that's all.
Recommended Posts