Skip to content

Instantly share code, notes, and snippets.

@CrysoK
Last active April 19, 2023 15:46
Show Gist options
  • Save CrysoK/6c5e06094ca6a1a495eaec9a0b0320e6 to your computer and use it in GitHub Desktop.
Save CrysoK/6c5e06094ca6a1a495eaec9a0b0320e6 to your computer and use it in GitHub Desktop.
Script para el laboratorio de paralelismo de Arquitectura de la Computadora

Servidor:

sudo bash <(wget -o /dev/null -nv -O - https://gist.githubusercontent.com/CrysoK/6c5e06094ca6a1a495eaec9a0b0320e6/raw/nfs_servidor.sh)

Clientes:

sudo bash <(wget -o /dev/null -nv -O - https://gist.githubusercontent.com/CrysoK/6c5e06094ca6a1a495eaec9a0b0320e6/raw/nfs_cliente.sh)
#!/bin/sh
apt install nfs-common
mkdir /datos
echo "server:/datos /datos nfs rw" >> /etc/fstab
mount -a
df –h
echo "ASYNCMOUNTNFS=no" >> /etc/default/rcS
#!/bin/sh
apt install nfs-kernel-server nfs-common
mkdir /datos
chown nobody:nogroup /datos
chmod 777 /datos
echo "/datos 192.168.100.0/24(rw,sync,no_subtree_check)" >> /etc/exports
echo "Reiniciar y verificar con exportfs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment