Correction Export variables
This commit is contained in:
parent
aedc08c983
commit
a9716c55c7
3
BOINC.sh
3
BOINC.sh
|
@ -8,6 +8,7 @@ sudo apt-get install boinc-client && echo "BOINC install
|
|||
echo "Joindre un compte pour BOINC"
|
||||
echo -e \t\e[1;33;40m"Quel est votre mot de passe pour le client BOINC sur cet ordinateur ?" \e[0m 1;33m
|
||||
read pass_client
|
||||
export pass_client
|
||||
sudo echo $pass_client > /var/lib/boinc-client/gui_rpc_auth.cfg && echo -e "Password GUI inscrit dans le fichier gui_rpc_auth.cfg" # Inscrire le password GUI dans le fichier idoine
|
||||
echo -e \t\e[1;33;40m"Quelle est l'adresse du manager ? (exemple : http://am.statseb.fr/ ou http://bam.boincstats.com/)" \e[0m 1;33m
|
||||
read manager
|
||||
|
@ -29,10 +30,12 @@ sudo boinccmd --set_network_mode always && echo -e "BOINC a maintenant toujours
|
|||
|
||||
echo -e \t\e[1;33;40m"Adresse ip locale de l'ordinateur hôte (ayant accès à celui-ci). Exemple : 192.168.1.10" \e[0m 1;33m
|
||||
read ip_master
|
||||
export ip_master
|
||||
sudo echo $ip_master > /etc/boinc-client/remote_hosts.cfg && echo "IP de l'ordinateur hôte inscrite dans le fichier remote_hosts.cfg" # Inscrire l'IP de l'ordi hôte
|
||||
|
||||
echo -e \t\e[1;33;40m"Donnez un nom à cette machine" \e[0m 1;33m
|
||||
read nom
|
||||
export nom
|
||||
sudo echo $nom > /etc/hostname
|
||||
sudo echo 127.0.0.1 localhost > /etc/hosts
|
||||
sudo echo 127.0.1.1 $nom >> /etc/hosts
|
||||
|
|
Loading…
Reference in New Issue