Difference between revisions of "Common setup for all HPC nodes"

From Notes_Wiki
(Blanked the page)
Tag: Blanking
 
Line 1: Line 1:
[[Main Page|Home]] > [[Ubuntu]] > [[Ubuntu HPC setup with slurm and linux containers]] > [[Ubuntu HPC common setup for all HPC nodes]]


= Install Ubuntu 22.04 =
: Install Ubuntu 22.04 Server on all nodes with most default values.
: Create a non-root user (e.g., admin) during setup.
== Login Using the Admin User ==
: Login to each node using the admin user.
== Configure History Retention ==
: Enable storing date and time along with each command in history, as explained in the guide:
[[Storing date / time along with commands in history]]
== Install Essential Packages ==
<pre> sudo su - apt update apt -y install openssh-server vim htop stress munge </pre>
== Set Root Password ==
<pre> passwd </pre>
== Enable Root SSH Access ==
: Edit the SSH configuration file:
<pre> vim /etc/ssh/sshd_config </pre>
: Locate and change the following line:
<pre> PermitRootLogin yes </pre>
== Restart SSH Service ==
<pre> systemctl restart sshd </pre>
== Stop and disable OS firewall services ==
<pre>
systemctl stop ufw
systemctl disable ufw
</pre>
== Add IP Address and Hostname Mapping ==
On '''all nodes''', including containers and VM/bare-metal systems, add the IP address and hostname mapping entries into the `<code>/etc/hosts</code>` file.
Also, make sure to '''comment out''' the default hostname entry like this:
<pre>
#127.0.1.1    &lt;hostname&gt;
</pre>
=== Example ===
<pre>
#127.0.1.1    infra
192.168.2.5  infra.local      infra
192.168.2.3  node2.local      node2
192.168.2.4  node1.local      node1
192.168.2.6  slurm-login.local      slurm-login
192.168.2.7  slurm-db.local        slurm-dbsrv
192.168.2.8  slurm-master.local    slurm-master
192.168.2.9  slurm-ldap.local      slurm-ldapsrv
</pre>
== Install Environment Modules ==
<pre> apt install -y environment-modules </pre>
== Re-login for Modules to Work ==
: After installation, logout and login again into each node to ensure module command works.
== Configure Module Path ==
: Edit the module path configuration file:
<pre> vim /etc/environment-modules/modulespath </pre>
: Add the following line:
<pre> /export/modules </pre>
[[Main Page|Home]] > [[Ubuntu]] > [[Ubuntu HPC setup with slurm and linux containers]] > [[Ubuntu HPC common setup for all HPC nodes]]

Latest revision as of 12:15, 6 June 2025