Changes

Raspberry Pi

859 bytes added, 12:39, 29 May 2015
Added push instructions
Then you can edit files in /var/www/
=== Un wiki Wiki ===
==== Intro ====
Utiliser un Raspberry Pi pour remplacer un serveur AMD 64 bit est ce réaliste pour héberger un wiki?
Then you can edit files on your laptop.
 
=== Push notifications ===
You can send push notifications with Pushbulltet on various events, such as booting your Pi. Let's start off with a script that sends you a push notification with your IP when you turn on your Pi:
nano piip.sh
Paste this inside, and replace the example keys with your own keys:
#!/bin/bash
ipVar=$(/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
curl https://api.pushbullet.com/v2/pushes \
-u <paste_your_API_key_here>: \
-d device_iden="<device_ID_of_your_phone>" \
-d type="note" \
-d title="Pi IP address" \
-d body=$ipVar \
-X POST
 
Set permissions to allow it to execute:
sudo chmod 777 piip.sh
 
Open the crontab:
sudo crontab -e
 
Then paste at the bottom of the crontab:
@reboot /home/pi/piip.sh
 
[https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=79151 Documentation]
== Hardware ==
462
edits