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

From Notes_Wiki
(Created page with "Home > Ubuntu > HPC setup with openpbs and openmpi > Common setup of all HPC nodes Plan is to create an Ubuntu 20.04 template using below steps. Then we can clone the template to master / execution nodes and configure those nodes individually separately. For common node (template) setup use: # Install Ubuntu 20.04 Desktop with most default values. Non-root user...")
 
m
Line 10: Line 10:
#:: sudo su -
#:: sudo su -
#:: apt update
#:: apt update
#:: apt install openssh-server vim htop stress
#:: apt -y install openssh-server vim htop stress
#:</pre>
#:</pre>
# Set desired root password:
# Set desired root password:
Line 26: Line 26:
# Install OpenPBS dependencies
# Install OpenPBS dependencies
#:<pre>
#:<pre>
#:: apt-get install gcc make libtool libhwloc-dev libx11-dev libxt-dev libedit-dev libical-dev ncurses-dev perl python-dev tcl-dev tk-dev swig libexpat-dev libssl-dev libxext-dev libxft-dev autoconf automake expat libedit2  python sendmail-bin sudo tcl tk libpq5
#:: apt-get -y install gcc make libtool libhwloc-dev libx11-dev libxt-dev libedit-dev libical-dev ncurses-dev perl python-dev tcl-dev tk-dev swig libexpat-dev libssl-dev libxext-dev libxft-dev autoconf automake expat libedit2  python sendmail-bin sudo tcl tk libpq5
#:</pre>
#:</pre>
# Install libhwloc for mpi /openpbs etc.
# Install libhwloc for mpi /openpbs etc.
Line 36: Line 36:
#:<pre>
#:<pre>
#:: add-apt-repository ppa:deadsnakes/ppa
#:: add-apt-repository ppa:deadsnakes/ppa
#:: apt install python3.6 libpython3.6
#:: apt -y install python3.6 libpython3.6
#:</pre>
#:</pre>
# Set python3.6 as default python
# Set python3.6 as default python

Revision as of 05:59, 15 February 2023

Home > Ubuntu > HPC setup with openpbs and openmpi > Common setup of all HPC nodes

Plan is to create an Ubuntu 20.04 template using below steps. Then we can clone the template to master / execution nodes and configure those nodes individually separately.

For common node (template) setup use:

  1. Install Ubuntu 20.04 Desktop with most default values. Non-root user can be admin1.
  2. Login with non-root user creation during OS installation (eg admin1) and disable screen lock and blanking of screen
  3. Install ssh, vim and other required packages via:
    sudo su -
    apt update
    apt -y install openssh-server vim htop stress
  4. Set desired root password:
    passwd
  5. Enable root SSH by editing '/etc/ssh/sshd_config'
    PermitRootLogin yes
  6. Restart sshd for changes to take effect:
    systemctl restart sshd
  7. Install OpenPBS dependencies
    apt-get -y install gcc make libtool libhwloc-dev libx11-dev libxt-dev libedit-dev libical-dev ncurses-dev perl python-dev tcl-dev tk-dev swig libexpat-dev libssl-dev libxext-dev libxft-dev autoconf automake expat libedit2 python sendmail-bin sudo tcl tk libpq5
  8. Install libhwloc for mpi /openpbs etc.
    wget http://archive.ubuntu.com/ubuntu/pool/universe/h/hwloc/libhwloc5_1.11.9-1_amd64.deb
    dpkg -i libhwloc5_1.11.9-1_amd64.deb
  9. Install python 3.6 for openpbs
    add-apt-repository ppa:deadsnakes/ppa
    apt -y install python3.6 libpython3.6
  10. Set python3.6 as default python
    update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1
    python --version


Home > Ubuntu > HPC setup with openpbs and openmpi > Common setup of all HPC nodes