Skip to content
Snippets Groups Projects
Commit 5886f2c3 authored by Cirilli Simon's avatar Cirilli Simon
Browse files

mise des scripts partout

parent 925c6aaf
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# Il faut mettre la bonne machine ec2
scp -i ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/simcir.pem ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/s1/script.sh ec2-user@3.82.200.236:
ssh -i ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/simcir.pem ec2-user@ec2-3-82-200-236.compute-1.amazonaws.com
\ No newline at end of file
#!/bin/bash
# Il faut lancer loginSSH avant et ceci va être envoyer sur le serveur, il faut encore remplir correctement les ip dans les voisins
sudo yum -y install git wget
sudo yum -y groupinstall 'Development Tools'
wget https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz
tar zxvf Python-3.4.2.tgz
cd Python-3.4.2
sudo yum -y install gcc
./configure --prefix=/opt/python3
make
sudo yum -y install openssl-devel
sudo make install
sudo ln -s /opt/python3/bin/python3 /usr/bin/python3
cd ~
git clone https://gitedu.hesge.ch/simon.cirilli/freenet.git
cd freenet/VersionDistribue/s1
echo "address: \"0.0.0.0\"" > neighbour.yaml
echo "storage:" >> neighbour.yaml
echo " - key: 55" >> neighbour.yaml
echo " address: \"184.72.207.132\"" >> neighbour.yaml
python3 -m pip install -U pyyaml
python3 main.py
#!/bin/bash
# Il faut mettre la bonne machine ec2
scp -i ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/simcir.pem ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/s1/script.sh ec2-user@3.82.200.236:
ssh -i ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/simcir.pem ec2-user@ec2-3-82-200-236.compute-1.amazonaws.com
\ No newline at end of file
#!/bin/bash
# Il faut lancer loginSSH avant et ceci va être envoyer sur le serveur, il faut encore remplir correctement les ip dans les voisins
sudo yum -y install git wget
sudo yum -y groupinstall 'Development Tools'
wget https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz
tar zxvf Python-3.4.2.tgz
cd Python-3.4.2
sudo yum -y install gcc
./configure --prefix=/opt/python3
make
sudo yum -y install openssl-devel
sudo make install
sudo ln -s /opt/python3/bin/python3 /usr/bin/python3
cd ~
git clone https://gitedu.hesge.ch/simon.cirilli/freenet.git
cd freenet/VersionDistribue/s1
echo "address: \"0.0.0.0\"" > neighbour.yaml
echo "storage:" >> neighbour.yaml
echo " - key: 55" >> neighbour.yaml
echo " address: \"184.72.207.132\"" >> neighbour.yaml
python3 -m pip install -U pyyaml
python3 main.py
#!/bin/bash
# Il faut mettre la bonne machine ec2
scp -i ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/simcir.pem ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/s1/script.sh ec2-user@3.82.200.236:
ssh -i ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/simcir.pem ec2-user@ec2-3-82-200-236.compute-1.amazonaws.com
\ No newline at end of file
#!/bin/bash
# Il faut lancer loginSSH avant et ceci va être envoyer sur le serveur, il faut encore remplir correctement les ip dans les voisins
sudo yum -y install git wget
sudo yum -y groupinstall 'Development Tools'
wget https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz
tar zxvf Python-3.4.2.tgz
cd Python-3.4.2
sudo yum -y install gcc
./configure --prefix=/opt/python3
make
sudo yum -y install openssl-devel
sudo make install
sudo ln -s /opt/python3/bin/python3 /usr/bin/python3
cd ~
git clone https://gitedu.hesge.ch/simon.cirilli/freenet.git
cd freenet/VersionDistribue/s1
echo "address: \"0.0.0.0\"" > neighbour.yaml
echo "storage:" >> neighbour.yaml
echo " - key: 55" >> neighbour.yaml
echo " address: \"184.72.207.132\"" >> neighbour.yaml
python3 -m pip install -U pyyaml
python3 main.py
#!/bin/bash
# Il faut mettre la bonne machine ec2
scp -i ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/simcir.pem ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/s1/script.sh ec2-user@3.82.200.236:
ssh -i ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/simcir.pem ec2-user@ec2-3-82-200-236.compute-1.amazonaws.com
\ No newline at end of file
#!/bin/bash
# Il faut lancer loginSSH avant et ceci va être envoyer sur le serveur, il faut encore remplir correctement les ip dans les voisins
sudo yum -y install git wget
sudo yum -y groupinstall 'Development Tools'
wget https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz
tar zxvf Python-3.4.2.tgz
cd Python-3.4.2
sudo yum -y install gcc
./configure --prefix=/opt/python3
make
sudo yum -y install openssl-devel
sudo make install
sudo ln -s /opt/python3/bin/python3 /usr/bin/python3
cd ~
git clone https://gitedu.hesge.ch/simon.cirilli/freenet.git
cd freenet/VersionDistribue/s1
echo "address: \"0.0.0.0\"" > neighbour.yaml
echo "storage:" >> neighbour.yaml
echo " - key: 55" >> neighbour.yaml
echo " address: \"184.72.207.132\"" >> neighbour.yaml
python3 -m pip install -U pyyaml
python3 main.py
#!/bin/bash
# Il faut mettre la bonne machine ec2
scp -i ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/simcir.pem ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/s1/script.sh ec2-user@3.82.200.236:
ssh -i ~/Documents/Annee3/semestre1/sysDistrib/freenet/VersionDistribue/simcir.pem ec2-user@ec2-3-82-200-236.compute-1.amazonaws.com
\ No newline at end of file
#!/bin/bash
# Il faut lancer loginSSH avant et ceci va être envoyer sur le serveur, il faut encore remplir correctement les ip dans les voisins
sudo yum -y install git wget
sudo yum -y groupinstall 'Development Tools'
wget https://www.python.org/ftp/python/3.4.2/Python-3.4.2.tgz
tar zxvf Python-3.4.2.tgz
cd Python-3.4.2
sudo yum -y install gcc
./configure --prefix=/opt/python3
make
sudo yum -y install openssl-devel
sudo make install
sudo ln -s /opt/python3/bin/python3 /usr/bin/python3
cd ~
git clone https://gitedu.hesge.ch/simon.cirilli/freenet.git
cd freenet/VersionDistribue/s1
echo "address: \"0.0.0.0\"" > neighbour.yaml
echo "storage:" >> neighbour.yaml
echo " - key: 55" >> neighbour.yaml
echo " address: \"184.72.207.132\"" >> neighbour.yaml
python3 -m pip install -U pyyaml
python3 main.py
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment