Ответ Фредди дает только первый узел из каждого. Хотя это может быть все, что вам нужно, вместо этого выбирается случайный узел из каждого кластера.
# iterate through unique list of cluster stub names, assuming a digit marks the node number
for cluster in $(sed -e 's/.domain_name//' serverlist|tr -d '[[:digit:]]'|sort -u)
do
# for this cluster, get the list of all node names if indexed
nodes=( $(grep $cluster'[[:digit:]]' serverlist) )
# if there wasn't a match it's because it's a cluster of one without a node number
if (( ${#nodes[@]} == 0 )); then
# cluster of one
echo $cluster
else
# pick a random number from 1 to number of nodes
# subtract one to make it an array index
n=$(( $(shuf -i"1-${#nodes[@]}" -n1) -1 ))
echo ${nodes[$n]}
fi
done
https://www.debian.org/releases/stable/amd64/ch03s04.en.htmlсодержит текущие минимальные требования для Debian 10. (Ссылка относится к версии x86 _64, но цифры для 32-битной -версии такие же.)
Минимальные значения (256 МБ без графического интерфейса, 512 МБ с графическим интерфейсом )предполагают довольно минималистскую установку, поэтому в зависимости от того, какие пакеты вы выбрали, ваша оперативная память может быть уже почти полностью использована.
It is possible to run a graphical desktop environment on older or low-end systems, but in that case it is recommended to install a window manager that is less resource-hungry than those of the GNOME or KDE Plasma desktop environments; alternatives include xfce4, icewm and wmaker, but there are others to choose from.