Complément à l'installation et à la configuration de Yunohost. Matériel : Raspberry Pi 2 Nom de domaine : steamcloud.space
https://yunohost.org/#/install_on_raspberry_fr Comme le clavier est en 'qwerty' par défaut, pour éviter des erreurs au niveau du mot de passe d'accès à l'interface de Yunohost, utiliser ce mot de passe : cloud La disposition des touches sont les mêmes sur un clavier 'qwerty' et 'azerty'. Après l'installation, il faudra donc changer le mot de passe : [Outils][Changer le mot de passe d'administration] Via la ligne de commande :
root@YunoHost:~# yunohost tools adminpw
Administration password:
New administration password:
Confirm new administration password:
Success! The administration password has been changed
[~] ➔ ssh root@192.168.1.30
root@192.168.1.30's password: < yunohost>
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@YunoHost:~#
root@YunoHost:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@YunoHost:~#
Ouvrir :
/etc/apt/sources.list
Chercher :
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
Remplacer par :
deb http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian jessie main contrib non-free rpi
root@YunoHost:~# apt-get update
root@YunoHost:~# apt-get install mc screen vim
[~] ➔ nmap 192.168.1.*
Starting Nmap 6.40 ( http://nmap.org ) at 2017-09-05 17:16 CEST
...
Nmap scan report for pc66.home (192.168.1.13)
Host is up (0.0010s latency).
Not shown: 990 filtered ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
53/tcp open domain
80/tcp open http
443/tcp open https
465/tcp open smtps
587/tcp open submission
993/tcp open imaps
5222/tcp open xmpp-client
5269/tcp open xmpp-server
...
Nmap done: 256 IP addresses (4 hosts up) scanned in 8.00 seconds
application / service port interne port externe protocole appareil
Secure Web Server (HTTPS) 443 443 TCP 192.168.1.13
Web Server (HTTP) 80 80 TCP 192.168.1.13
Type : A
TTL : 3 hours
Name : @
Ipv4 address : 90.48.170.21
[~] ➔ ping steamcloud.space -c 1
PING steamcloud.space (90.48.170.21) 56(84) bytes of data.
64 bytes from ANancy-655-1-35-21.w90-48.abo.wanadoo.fr (90.48.170.21): icmp_seq=1 ttl=64 time=2.36 ms
--- steamcloud.space ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.361/2.361/2.361/0.000 ms
/etc/hosts
Ajouter à la fin :
127.0.0.1 steamcloud.space
root@YunoHost:~# yunohost tools update
root@YunoHost:~# yunohost tools upgrade --ignore-apps
/home/admin/updateIPv4DN.sh
Ajouter :
#!/bin/sh
export IP4PUB=`dig +short myip.opendns.com @resolver1.opendns.com`
export API="https://dns.beta.gandi.net/api/v5/"
export DOMAIN="steamcloud.space"
export RECORD="@"
export APIKEY="<clé API>"
export IP4=$IP4PUB
export DATA='{"rrset_values": ["'$IP4'"]}'
curl -s -XPUT -d "$DATA" -H"X-Api-Key: $APIKEY" -H"Content-Type: application/json" "$API/domains/$DOMAIN/records/$RECORD/A"
root@YunoHost:~# chmod +x /home/admin/updateIPv4DN.sh
/etc/crontab
Ajouter à la fin :
0 3 * * * root /home/admin/updateIPv4DN.sh
Solution : Changer le mot de passe de l'utilisateur Wordpress. Soit :
root@YunoHost:~# cd /var/www/wordpress
root@YunoHost:/var/www/wordpress# wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
root@YunoHost:/var/www/wordpress# php wp-cli.phar --allow-root --path=/var/www/wordpress plugin install simple-ldap-login
Installing Simple LDAP Login (1.6.0)
Téléchargement de l’archive d’installation depuis https://downloads.wordpress.org/plugin/simple-ldap-login.1.6.0.zip...
Décompression de l’archive de l’extension...
Installation de l’extension...
L’extension a bien été installée.
Success: Installed 1 of 1 plugins.
root@YunoHost:/var/www/wordpress# php wp-cli.phar --allow-root --path=/var/www/wordpress user update <utilisateur Wordpress > --user_pass=<mot de passe de l'utilisateur Wordpress >
Success: Updated user 1.