Raspberry Pi

From Fixme.ch
Revision as of 18:17, 1 April 2015 by Pirboazo (Talk | contribs) (Conclusion)

Jump to: navigation, search

Page showing some useful RPi information. Don't hesitate to contribute! Keep in mind that this is aimed at people who aren't necessarily competent with linux or electronics in general.

Setup

  1. Download NOOBS, a simple to use installer that requires no command line knowledge
  2. Find an empty SD or microSD card (minimum 2gb/class 6, 4gb/class 10 recommended - try to find cards with UHS-1), make sure it's FAT32, and then extract all the files from the NOOBS zip onto it
  3. Plug in the SD card, an HDMI or composite display, a ethernet cable, usb keyboard + mouse, and a good 5v power supply (seriously - a lot of issues come from low power/fake power supplies) RasperrySetup.jpg
  4. Power on the Pi, and wait a few seconds until you reach the screen below. Select Raspbian, click install, and wait a few minutes - the Pi should take 20-60 minutes to install depending on your internet connection and SD card. NOOBS.png
  5. After installation is complete, the 'Raspberry Pi Software Configuration Tool' pop up. You can skip this step but it's recommended that you change the following: Raspi-config.png
    1. Change User Password to something that you can remember - default one is raspbian
    2. Enable boot to Desktop select whether you want to boot to console (ideal for servers and remote access), or desktop (for projects that display something, or if you want to set up the pi directly on itself)
    3. Internationalisation Options
      1. Change locale to en_US.UTF-8 for everything, other options will break things later
      2. Change keyboard layout to German Switzerland -> Swiss French, this part is a must if you're used to fr_ch keyboards
    4. Advanced Options -> Hostname to something easy to find, such as 'raspberrypi-yourname'
  6. Click on finish, reboot your Pi, and you're good to go!


 Hackers guide, only do this if you know what you're doing - you could wipe the wrong device!
 
 wget http://downloads.raspberrypi.org/raspbian_latest && unzip raspbian_latest
 umount /dev/sdd1
 dd bs=4M if=2015-02-16-raspbian-wheezy.img of=/dev/sdd
 ##progress won't be evident, run 'pkill -USR1 -n -x dd' in another window to see it
 sync
 ##remove SD card and copy steps 3 and 5 above

WiFi

If you have a WiFi stick that is directly compatible with Raspbian, follow the instructions bellow. If it's not, then you'll need to troubleshoot with Google.

Software

Web server (Apache)

 sudo apt-get install apache2

Then you can edit files in /var/www/

Un wiki

Intro

Utiliser un Raspberry Pi pour remplacer un serveur AMD 64 bit est ce réaliste pour héberger un wiki?

Lors de la sortie du modèle B+ en novembre je me suis lancé dans l'aventure d'installer un wikimedia sur le Raspberry Pi en ma possession .

mediawiki

Afin de minimiser l'utilisation des ressources et compte-tenu de mon besoin j'ai opté pour une installation avec sqllite3 .

Et si le wiki est visible il est d'une lenteur affligeante :-( voyez par vous même belorne .

La faute me semble-t-il à PHP et à la programation de mediadwiki qui est bien trop lourde pour une si petite machine.


Il faut oublier une telle idée, si ce n'est pour jouer .

Une autre solution

Oui biensur il y en a bcp mais pour une tel machine , la solution la plus ligth mais aussi la plus simple c'est MDwiki.

Un wiki en langage de description de page Markdown.

Je ne vais pas décrire les étapes de cette installation , juste vous donner des liens permettant de comprendre comment cela est faisable.

Les composants :

  • Un rapsberry Pi B+
  • Os Raspbian 3.12.35+
  • Mdwiki [Site]
  • 2 comptes Google Drive
  • [insync] version RaspberryPi

Voici le [résultats]

Comment cela marche ?

Trés trés simplement. de mon portable je peux éditer n'importe quel fichier du site , en changer les liens.... Le tout est quasi immédiatement mise à jour sur le dossier de mon Raspberry Pi qui est synchroniser en temps .

Conclusion

Biensur on est bien loin de Mediawiki ou de MoinsMoins.

Then you can edit files on your laptop.

Hardware

GPIO

 git clone git://git.drogon.net/wiringPi
 cd wiringPi/
 ./build

Then set a pin to output

 gpio [-g] mode <pin> in/out/pwm/up/down/tri
 gpio -g mode 13 out  #for example

Use the pin

 gpio -g write 13 1

Documentation