Created
June 10, 2024 20:24
-
-
Save inatagan/2216ca670324cd4a68944f598d98b342 to your computer and use it in GitHub Desktop.
script for initializing machine labs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Antes de executar usar o comando abaixo para conceder permissao: | |
# chmod +x lab_init.sh | |
### TO DO ### | |
# Eh necessario executar este script pela primeira vez como usuario root. | |
# use o camando: | |
# su | |
# com a senha: ifsp | |
# e entao execute este script | |
############# | |
# Adicionar user 'aluno' ao arquivo de sudoers: | |
echo 'aluno ALL=(ALL:ALL) ALL' >> /etc/sudoers | |
exit | |
# Remover apt deadlock | |
rm -f /var/lib/dpkg/lock-frontend | |
rm -f /var/lib/dpkg/lock | |
# Atualizar repositorios: | |
sudo apt-get update | |
# Instalar pacotes do OpenMPI | |
sudo apt-get instal openmpi-bin libopenmpi-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment