<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>A quality noob blog (Articles sur raspberry pi)</title><link>https://alhern.github.io/</link><description></description><atom:link href="https://alhern.github.io/fr/categories/raspberry-pi.xml" rel="self" type="application/rss+xml"></atom:link><language>fr</language><copyright>© 2018 &lt;a href="mailto:audev@protonmail.com"&gt;Alhern&lt;/a&gt; </copyright><lastBuildDate>Sat, 24 Mar 2018 22:12:37 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>How to use a Raspberry Pi 3 with a Macbook</title><link>https://alhern.github.io/fr/posts/how-to-use-a-raspberry-pi-3-with-a-macbook/</link><dc:creator>Alhern</dc:creator><description>&lt;div&gt;&lt;p&gt;You have a Raspberry Pi 3 and you don't want to use an extra monitor/keyboard/mouse when you have a Macbook on hand. Good, me neither.&lt;/p&gt;
&lt;p&gt;Well, great news: using a Macbook with a Raspberry Pi is very easy.&lt;/p&gt;
&lt;p&gt;Here's the list of what I used to do this:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;strong&gt;Raspberry Pi 3 Model B&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Old unibody Macbook&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;32Go class 10 SD micro card + USB adapter&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ethernet cable&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;5V 3A power supply&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;3 heatsinks&lt;/li&gt;
&lt;li&gt;1 fan&lt;/li&gt;
&lt;li&gt;a transparent plastic case&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You really only need what is bolded.
Even then you don't need a 32Go SD card, make sure it's at least &lt;strong&gt;8Go&lt;/strong&gt; though.&lt;/p&gt;
&lt;p&gt;Now let's get to it.&lt;/p&gt;
&lt;div class="section" id="setting-up-your-pi"&gt;
&lt;h2&gt;Setting up your Pi&lt;/h2&gt;
&lt;img alt="Raspberry Pi 3 Model B" class="align-center" src="https://alhern.github.io/images/pi1.PNG"&gt;
&lt;p&gt;Start by downloading &lt;a class="reference external" href="https://www.raspberrypi.org/downloads/raspbian/"&gt;Raspbian Stretch with Desktop&lt;/a&gt; and also &lt;a class="reference external" href="https://www.sdcard.org/downloads/formatter_4/index.html"&gt;SD Memory Card Formatter&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Raspbian might take a bit to download so let's take care of your SD card in the meantime:&lt;/p&gt;
&lt;p&gt;Plug it into your Macbook using an adapter, open SD Memory Card Formatter, select your card and click on "&lt;strong&gt;Overwrite Format&lt;/strong&gt;".&lt;/p&gt;
&lt;p&gt;Once it's done, you're going to download &lt;a class="reference external" href="https://etcher.io/"&gt;Etcher&lt;/a&gt;.
Etcher will take care of safely flashing your formatted SD card with Raspbian's image.&lt;/p&gt;
&lt;p&gt;Once Raspbian is downloaded, you won't even need to unzip it you can just &lt;strong&gt;slide the zip file into Etcher&lt;/strong&gt;, make sure your SD card is selected (should be automatic) and click on Flash!&lt;/p&gt;
&lt;p&gt;Now that this is done, you're going to open TextEdit, type anything in it (or nothing at all), simply make sure that you save it using "&lt;strong&gt;ssh&lt;/strong&gt;" as a name, and that you &lt;span class="underline"&gt;don't save it as a ".txt" file&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Unplug your SD card and plug it back in. It should now be named "boot". Put the "ssh" file you just created in it.&lt;/p&gt;
&lt;p&gt;And now it's finally time to start our Pi.&lt;/p&gt;
&lt;img alt="Raspberry Pi 3 Model B with heatsinks" class="align-center" src="https://alhern.github.io/images/pi2.PNG"&gt;
&lt;p&gt;Unplug your SD card again and slide it into your Pi, plug your Ethernet cable from your laptop to your Pi, and lastly: power it up!&lt;/p&gt;
&lt;p&gt;You should see red and green lights, now wait a few minutes for your Pi to boot properly. It won't take as long next time.&lt;/p&gt;
&lt;p&gt;It's now time to open your console and ping that Pi like this::&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ ping raspberrypi.local
&lt;/pre&gt;
&lt;p&gt;You're gonna see something like this::&lt;/p&gt;
&lt;pre class="literal-block"&gt;
PING raspberrypi.local (XX.XXX.XXX.XX): 56 data bytes
Request timeout for icmp_seq 0``
64 bytes from XX.XXX.XXX.XX: icmp_seq=1 ttl=64 time=1.472 ms
64 bytes from XX.XXX.XXX.XX: icmp_seq=2 ttl=64 time=1.492 ms
64 bytes from XX.XXX.XXX.XX: icmp_seq=3 ttl=64 time=1.547 ms
&lt;/pre&gt;
&lt;p&gt;Cancel it with Ctrl + C.&lt;/p&gt;
&lt;p&gt;Congratulations, your Pi is here and ready to be used!
Grab her IP (numbers in XX.XXX.XXX.XX), and type this::&lt;/p&gt;
&lt;pre class="literal-block"&gt;
$ ssh pi@XX.XXX.XXX.XX
&lt;/pre&gt;
&lt;p&gt;Don't forget, your login is &lt;strong&gt;pi&lt;/strong&gt; and the password is &lt;strong&gt;raspberry&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Do say "yes" when asked &lt;cite&gt;Are you sure you want to continue connecting (yes/no)?&lt;/cite&gt; and &lt;strong&gt;welcome to your Raspberry Pi&lt;/strong&gt;!&lt;/p&gt;
&lt;p&gt;Now that you're in the Pi you should now see this::&lt;/p&gt;
&lt;pre class="literal-block"&gt;
pi@raspberrypi:~ $
&lt;/pre&gt;
&lt;p&gt;Feel free to explore the configuration using sudo &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;raspi-config&lt;/span&gt;&lt;/tt&gt;&lt;/p&gt;
&lt;p&gt;Make sure you enable &lt;strong&gt;VNC&lt;/strong&gt; in the interface menu.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="using-your-macbook"&gt;
&lt;h2&gt;Using your Macbook&lt;/h2&gt;
&lt;p&gt;You now need to download &lt;a class="reference external" href="https://www.realvnc.com/en/connect/download/viewer/"&gt;VNC Viewer&lt;/a&gt; on your laptop.&lt;/p&gt;
&lt;p&gt;Open it, enter your Pi's IP address and... That's it. You now have access to the Pi's graphical interface on your Macbook.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</description><guid>https://alhern.github.io/fr/posts/how-to-use-a-raspberry-pi-3-with-a-macbook/</guid><pubDate>Sat, 24 Mar 2018 19:25:37 GMT</pubDate></item></channel></rss>