different install for xbian (to make IMG) or desktop = direct ISOConfig

This commit is contained in:
qo-op 2021-03-10 02:54:21 +01:00
parent dce6c4fbea
commit 0cc0cdb528
2 changed files with 70 additions and 40 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
# Author: Fred (support@qo-op.com)
# Version: 0.3
# Version: 0.4
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
########################################################################
# IMPORTANT!!! ipfs MUST BE ALREADY RUNNING
@ -272,8 +272,43 @@ echo "$USER ALL=(ALL) NOPASSWD:/usr/bin/fail2ban-client" | (sudo su -c 'EDITOR="
########################################################################
# echo 'ONLY XBIAN REBOOT NOW...'
# echo 'ONLY XBIAN REBOOT NOW...' else SHOW CONFIG
########################################################################
[[ "$USER" == "xbian" ]] && sudo reboot
echo "Redémarrage des services ipfs & fail2ban..."
sudo service ipfs restart
sudo service fail2ban restart
echo "Installation complete !!
=======================================================
BIENVENUE DANS le réseau P2P Astroport/KODI (Gchange)
=======================================================
1. Connectez-vous sur https://gchange.fr avec vos identifiants
$(cat ~/.zen/secret.june)
2. Rejoignez-y vos amis, et échangez des étoiles avec eux pour créer vos cercles de liaisons amicales.
3. Ajoutez vos vidéos avec le lien Astroport/Kodi sur votre bureau
==========================================================
Maintenant, redémarrez votre ordinateur pour rejoindre ASTROPORT
==========================================================
GCHANGE (Firefox)
https://github.com/duniter-gchange/gchange-client/releases/download/v1.2.7/gchange-v1.2.7-extension-firefox.xpi
Vos identifiants sont dans dans ~/.zen/secret.june
CESIUM (Firefox)
https://github.com/duniter/cesium/releases/download/v1.6.7/cesium-v1.6.7-extension-firefox.xpi
Utilisez ~/.zen/secret.duniter pour accéder à votre portefeuille
---
Rendons le monde numérique LIBRE P2P et LEGAL
[REC] Team : https://copylaradio.com
"
exit 0

View File

@ -1,22 +1,22 @@
#!/bin/bash
########################################################################
# Version: 0.2
# Version: 0.3
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
########################################################################
{
[ $(id -u) -eq 0 ] && echo "LANCEMENT root INTERDIT. Utilisez un simple utilisateur du groupe \"sudo\" SVP" && exit 1
# MAIN #
if [[ ! -f ~/.zen/secret.june ]];
then
# Check requirements
echo "AstrXbian installateur pour https://xbian.org et autres ditributions basées sur DEBIAN"
echo "AstrXbian installateur pour XBIAN (https://xbian.org) et ditributions DEBIAN et dérivées (https://www.linuxmint.com/)"
sudo apt-get update
sudo apt-get install git fail2ban inotify-tools curl net-tools libsodium* python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev -y
sudo apt-get install build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils vlc mp3info -y
[[ ! $(which kodi) ]] && sudo apt-get install kodi -y
[[ "$USER" != "xbian" ]] && sudo apt-get install x11-utils zenity handbrake* -y
# [[ ! $(which apache2) ]] && sudo apt-get install mariadb-server nginx python3-certbot-nginx certbot ssl-cert php-imap php-cli php-curl php-sqlite3 php-gd php-json php-xml php-mbstring php-gettext php-mysql php-fpm -y
pip3 install cryptography Ed25519 base58 google protobuf duniterpy
@ -27,7 +27,7 @@ cd ~/.zen
git clone https://git.p2p.legal/axiom-team/astrXbian.git
########################################################################
echo "Configuration ASTROPORT de ~/.kodi"
echo "IMPORT configuration ASTROPORT dans ~/.kodi"
cp -Rf ~/.zen/astrXbian/.install/.kodi ~/
########################################################################
@ -35,7 +35,7 @@ echo "Installation de IPFS https://ipfs.io"
~/.zen/astrXbian/.install/ipfs_alone.sh
########################################################################
echo "Configuration des communications avec GCHANGE+"
echo "Configuration jaklis: Centre de communication GCHANGE+"
cd ~/.zen/astrXbian/zen/jaklis
./setup.sh
@ -64,48 +64,43 @@ then
fi
########################################################################
echo "Configuration ASTROPORT/KODI"
~/.zen/astrXbian/ISOconfig.sh
echo "Redémarrage des services..."
sudo service ipfs restart
sudo service fail2ban restart
# CREATE ~/astroport FILE GATE
# CREATE ~/astroport FILESYSTEM GATE
mkdir -p ~/astroport/film
mkdir -p ~/astroport/serie
mkdir -p ~/astroport/anime
if [[ "$USER" != "xbian" ]]
then
## Desktop install
echo "INIT configuration Astroport/KODI"
~/.zen/astrXbian/ISOconfig.sh
else
## Rpi Xbian install.
cat /etc/rc.local | grep -Ev "exit 0" > /tmp/new.rc.local ## REMOVE "exit 0"
# PREPARE NEXT BOOT - Network config - NEXTBOOT - ISOConfig - NEXTBOOT - OK
echo "su - xbian -c '~/.zen/astrXbian/FirstBOOT.sh'" >> /tmp/new.rc.local
echo "exit 0" >> /tmp/new.rc.local
sudo cp -f /tmp/new.rc.local /etc/rc.local
echo "STOP!! Redémarrer Xbian pour continuer la configuration de votre station Astroport/KODI"
echo "Faites une ISO : http://wiki.xbian.org/doku.php/create_image"
exit 0
fi
echo "Installation complete !!
# MAIN # -f ~/.zen/secret.june (ISOConfig déjà lancé) ##
else
==================================================
BIENVENUE DANS le service ASTROPORT/KODI/VSTREAM
==================================================
1. Connectez-vous sur https://gchange.fr avec vos identifiants
echo "Installation déjà faite !!
========================
Astroport/KODI (Gchange)
========================
Connectez-vous sur https://gchange.fr avec vos identifiants
$(cat ~/.zen/secret.june)
2. Rejoignez-y vos amis, et échangez des étoiles avec eux pour créer vos cercles de liaisons amicales.
3. Ajoutez vos vidéos avec le lien Astroport/Kodi sur votre bureau
==========================================================
Maintenant, redémarrez votre ordinateur pour rejoindre ASTROPORT
==========================================================
GCHANGE (Firefox)
https://github.com/duniter-gchange/gchange-client/releases/download/v1.2.7/gchange-v1.2.7-extension-firefox.xpi
Vos identifiants sont dans dans ~/.zen/secret.june
CESIUM (Firefox)
https://github.com/duniter/cesium/releases/download/v1.6.7/cesium-v1.6.7-extension-firefox.xpi
Utilisez ~/.zen/secret.duniter pour accéder à votre portefeuille
---
Rendons le monde numérique LIBRE P2P et LEGAL
[REC] Team : https://copylaradio.com
https://astroport.com
"
# MAIN #
fi
}