Skip to content

Latest commit

 

History

History
111 lines (83 loc) · 2.26 KB

miniHPC_step_by_step.md

File metadata and controls

111 lines (83 loc) · 2.26 KB
layout title
static
Setting up the miniHPC login node

{% include sidebar.md %}

Setting up the miniHPC login node

(Work in progress)

  • Create an SD card (or USB drive if booting from USB) with Raspberry Pi Lite Os on it.
  • Do an update and a full-upgrade:
sudo apt-get update
sudo apt-get full-upgrade
  • Install the following packages:
sudo apt-get install -y nfs-kernel-server lmod ansible slurm munge nmap \ 
nfs-common net-tools build-essential htop net-tools screen vim python3-pip \
dnsmasq slurm-wlm
  • Setup the network

Place the following into /etc/network/interfaces

auto eth0
allow-hotplug eth0
iface eth0 inet static
  address 192.168.5.101
  netmask 255.255.255.0
source /etc/network/interfaces.d/*
  • Setup the WiFi

If you want to connect to the internet Run sudo raspi-config, go to System Options, Wireless LAN and enter your SSID and password.

  • Modify the hostname
echo pixie001 | sudo tee -a /etc/hostname
  • Configure dhcp by entering the following in the file /etc/dhcpd.conf
interface eth0
static ip_address=192.168.0.1/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
  • Configure dnsmasq by entering the following in the file /etc/dnsmasq.conf
interface=eth0
bind-dynamic
domain-needed
bogus-priv
dhcp-range=192.168.0.1,192.168.0.100,255.255.255.0,12h
  • Configure shared drives by addeding the following at the end of the file /etc/exports
/sharedfs    192.168.0.0/24(rw,sync,no_root_squash,no_subtree_check)
/modules     192.168.0.0/24(rw,sync,no_root_squash,no_subtree_check)
  • The /etc/hosts file should contain the following:
127.0.0.1	localhost
::1		localhost ip6-localhost ip6-loopback
ff02::1		ip6-allnodes
ff02::2		ip6-allrouters

127.0.1.1	pixie001

192.168.0.2	pixie002
192.168.0.3	pixie003
192.168.0.4	pixie004
192.168.0.5	pixie005
  • Install ESSI
mkdir essi
cd essi
wget https://raw.githubusercontent.com/EESSI/eessi-demo/main/scripts/install_cvmfs_eessi.sh
sudo bash ./install_cvmfs_eessi.sh
echo "source /cvmfs/software.eessi.io/versions/2023.06/init/bash" >> /etc/profile
  • Create a shared directory
sudo mkdir /sharedfs
sudo chown nobody.nogroup -R /sharedfs
sudo chmod 777 -R /sharedfs