YOU can be used after ISOConfig has run

This commit is contained in:
fred 2021-08-11 23:09:30 +02:00
parent 83f5d36a00
commit 4abc7ddd69
4 changed files with 28 additions and 3 deletions

View File

@ -16,8 +16,21 @@ sudo apt-get update
sudo apt-get install git fail2ban inotify-tools curl net-tools libsodium* python3-dev python3-pip python3-setuptools python3-wheel python3-dotenv mpack libssl-dev libffi-dev -y
sudo apt-get install build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils v4l-utils vlc mp3info musl-dev openssl* cargo detox httrack html2text ssmtp sudo -y
[[ ! $(which kodi) && "$USER" != "xbian" ]] && sudo apt-get install kodi -y
sudo apt-get install python3-opencv -y
sudo apt-get install python3-opencv -y ## INSTALLATION IA par reconnaissance d'images
[[ "$USER" != "xbian" ]] && sudo apt-get install x11-utils xclip zenity handbrake* -y
if [[ ! $(which apache2) ]]; then
########################################################################
## INSTALL nginx + php + mariadb + ...
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
#######################################################################
## CREATE symlinks for ~/.zen/www/swarm & me
mkdir -p ~/.zen/astrXbian/www/boris
sudo chown -R $USER:www-data /.zen/astrXbian/www/boris
sudo chmod -R g+rw /.zen/astrXbian/www/boris
ln -s /home/$USER/.zen/ipfs_swarm ~/.zen/astrXbian/www/boris/swarm
ln -s /home/$USER/.zen/ipfs ~/.zen/astrXbian/www/boris/me
fi
## INSTALL PYTHON CRYPTO LAYER
echo 'export PATH=$PATH:$HOME/.local/bin' >> ~/.bashrc && source ~/.bashrc
python3 -m pip install -U pip
@ -97,7 +110,7 @@ mkdir -p ~/astroport/anime
## PREPARE www EXCHANGE ZONE ~/astroport/www
wwwuser=$(ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1) || wwuser="www-data"
mkdir -p ~/astroport/www
sudo chown -R $YOU:$wwwuser ~/astroport/www
sudo chown -R $USER:$wwwuser ~/astroport/www
sudo chmod -R g+rw ~/astroport/www
if [[ "$USER" != "xbian" ]]

View File

@ -9,6 +9,17 @@ if (isset($_REQUEST['phone'])) $phone = $_REQUEST['phone']; else $phone = urldec
$message = "Proposition de ". $phone ." message : ".$link;
//YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1);
exec("ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1'", $YOU);
print_r($YOU);
$myfile = fopen("/home/fred/astroport/www/newfile.txt", "w") or die("Unable to open file!");
$txt = "John Doe\n";
fwrite($myfile, $txt);
$txt = "Jane Doe\n";
fwrite($myfile, $txt);
fclose($myfile);
error_log("SEND ". $phone ." message : ".$link );
mail($to, $subject, $message, $headers);
echo "OK";

View File

@ -7,6 +7,7 @@ $videosList = array();
exec("/bin/bash -c './get_astrxbian_index.sh F'", $videos);
exec("/bin/bash -c '/home/fred/.zen/astrXbian/actions/check_my_wallet.sh'", $gg1);
$videos = array_reverse($videos);
// ## film;MDan5TDuT-0;;Le Manuel de Survie en Dictature v1.1 au format papier;;["onelove"];k51qzi5uqu5dl0hnglpzumjezep2avacrtbx7i15v91elcxac4cpd8290kl1hq;720p;/ipfs/QmZp63RXhLm6QASmw1t2R8fu5waSJFmyW7cmdVNxyuJXzg/MDan5TDuT-0_Le%20Manuel%20de%20Survie%20en%20Dictature%20v1.1%20au%20format%20papier.mp4

View File

@ -181,7 +181,7 @@ do
</article>
</main>
<center><br>Ce media possède un G1 portefeuille avec lequel il paye son hébergement.
<br>Voici les dons reçus par le Media (${mediakey}). Ce média vous plait? Ajoutez le votre...<br>
<br>Voici les dons reçus par (${mediakey}). Ce média vous plait? Flashez ce QRCode.<br>
<br>
<br><img src=\"https://g1sms.fr/g1barre/image.php?pubkey=${MEDIAPUBKEY}&target=1000&title=DONS%20${mediakey}&node=g1.duniter.org&start_date=2021-06-21&display_pubkey=true&display_qrcode=true&progress_color=ff07a4\">
<br><img width=222 src=\"https://tube.copylaradio.com/ipns/$IPNSLINK/QR.png\"><br>${MEDIAPUBKEY} = ${ZENBALANCE} ZEN