{"id":457,"date":"2012-06-26T13:14:04","date_gmt":"2012-06-26T13:14:04","guid":{"rendered":"http:\/\/naich.net\/wordpress\/?p=457"},"modified":"2013-06-25T13:40:51","modified_gmt":"2013-06-25T13:40:51","slug":"pi-eyed","status":"publish","type":"post","link":"https:\/\/naich.net\/wordpress\/index.php\/pi-eyed\/","title":{"rendered":"Pi Eyed"},"content":{"rendered":"<p><a href=\"http:\/\/naich.net\/wordpress\/?p=435\">Continued from here.<\/a><\/p>\n<p>Your Pi is now sitting in the corner of the room, blinking its lights at you and presumably working.\u00c2\u00a0 Shall we see if we can do something with it?<\/p>\n<h3>3.\u00c2\u00a0 Setting up the interweb<\/h3>\n<p>Your Pi is working and sitting on the network, waiting for you.\u00c2\u00a0 But where is it?\u00c2\u00a0 You need to know its address on your network in order to log in, but it will have booted using DHCP, so its address is known only to the Pi and the router.\u00c2\u00a0 You need to set up your Pi with a permanent, static IP address of your choosing, as well as a gateway address (the address of the router on the LAN side) and subnet mask.\u00c2\u00a0 If you are a bit unsure how to select these, <a title=\"Appendix A\" href=\"http:\/\/naich.net\/wordpress\/?p=501\">Appendix A<\/a> might help.<\/p>\n<p>We need to edit a configuration file on the SD card in order to change the settings.\u00c2\u00a0 Put your SD card back into your card reader.\u00c2\u00a0 What you do next depends on what sort of computer you are using.<\/p>\n<p>If you use Linux on your PC then it&#8217;s easy enough &#8211; go into the &#8220;\/etc\/network&#8221; directory\u00c2\u00a0 in the larger partition and edit a file called &#8220;interfaces&#8221;, as shown below, with a text editor like gedit.\u00c2\u00a0 Do <strong>not<\/strong> use a word processor such as OpenOffice or LibreOffice.<\/p>\n<p>The \/etc\/network\/interfaces file looks like this:<\/p>\n<blockquote>\n<pre># Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or\r\n# \/usr\/share\/doc\/ifupdown\/examples for more information.\r\nauto lo\r\n\r\niface lo inet loopback\r\niface eth0 inet dhcp<\/pre>\n<\/blockquote>\n<p>Leave the lines up to &#8220;iface eth0&#8230;&#8221; alone, change that line and add 3 new ones like this:<\/p>\n<blockquote>\n<pre>iface eth0 inet static\r\naddress 192.168.1.5\r\ngateway 192.168.1.254\r\nnetmask 255.255.255.0<\/pre>\n<\/blockquote>\n<p>With &#8220;address&#8221; being the IP address you want to assign your Pi,\u00c2\u00a0 &#8220;gateway&#8221; your gateway and the &#8220;netmask&#8221; for your home network.\u00c2\u00a0 Once you have changed the text and saved the file over the top of the original, safely remove the card, put it in your Pi and reboot.<\/p>\n<p>Unfortunately it&#8217;s not that easy for Windows users.\u00c2\u00a0 Windows can&#8217;t read the Ext3 partition the &#8220;interfaces&#8221; config file resides in.\u00c2\u00a0 This means we have to temporarily force the Pi to use a static IP and then edit the config file on the Pi itself.\u00c2\u00a0 Look in the list of files on the card (the 59MB partition) for a file called &#8220;cmdline.txt&#8221;\u00c2\u00a0 Open it up with a text editor &#8211; Wordpad is best, do NOT use Word or any sort of word processor.\u00c2\u00a0 You will see this:<\/p>\n<blockquote>\n<pre>dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=\/dev\/mmcblk0p2 rootfstype=ext4 rootwait<\/pre>\n<\/blockquote>\n<p>Make sure that line wrapping is turned off (View-&gt;Word wrap-&gt;No wrap for Wordpad) and add the text in bold at the end of the line after &#8220;rootwait&#8221; (with a space between &#8220;rootwait&#8221; and &#8220;ip=192&#8230;&#8221;:<\/p>\n<blockquote>\n<pre>... rootwait <strong>ip=192.168.1.5::192.168.1.254:255.255.255.0::eth0:none<\/strong><\/pre>\n<\/blockquote>\n<p>That&#8217;s your desired IP for your Pi, two colons, the gateway address, one colon, the netmask, two colons, &#8220;eth0&#8221;, colon, &#8220;none&#8221;.\u00c2\u00a0 Make sure that the text is all on one line with a newline at the end, and save the file over the original.\u00c2\u00a0 Safely remove the card, put it in your Pi and start it up.\u00c2\u00a0 Keep following the tutorial for now.\u00c2\u00a0 We&#8217;ll sort your Pi out permanently once you&#8217;ve logged on and used the text editor a bit.<\/p>\n<h3>4.\u00c2\u00a0 Logging in<\/h3>\n<p>Like any sane computer, the Pi uses<a href=\"http:\/\/en.wikipedia.org\/wiki\/Secure_Shell\"> SSH<\/a> to provide an external terminal (or &#8220;shell&#8221;) in which to do your work.\u00c2\u00a0 It is secure because it is encrypted from log in onwards &#8211; no one can sniff your password, username or anything you type during your session.\u00c2\u00a0 If you use Linux on your home PC then you&#8217;ve already got a SSH client, but if you are unlucky enough to be using Windows, you&#8217;ll need to <a title=\"Putt putt putt putt\" href=\"http:\/\/the.earth.li\/~sgtatham\/putty\/latest\/x86\/putty.exe\" target=\"_blank\">download PuTTY<\/a> from <a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\" target=\"_blank\">here<\/a>.\u00c2\u00a0 Start PuTTY up and enter the IP address you picked where it says &#8220;Host name (or IP address)&#8221; and click &#8220;Open&#8221;.\u00c2\u00a0 Linux users, start a shell and type <strong><tt>ssh -l pi 192.168.1.5<\/tt><\/strong> (replace the 192&#8230; with your Pi&#8217;s IP address).\u00c2\u00a0 The username is &#8220;pi&#8221; and the password for it is &#8220;raspberry&#8221;.\u00c2\u00a0 You should see this:<\/p>\n<blockquote>\n<pre>Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l\r\n\r\nThe programs included with the Debian GNU\/Linux system are free software;\r\nthe exact distribution terms for each program are described in the\r\nindividual files in \/usr\/share\/doc\/*\/copyright.\r\n\r\nDebian GNU\/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\r\npermitted by applicable law.\r\n\r\nType 'startx' to launch a graphical session\r\n\r\nNOTICE: the software on this Raspberry Pi has not been fully configured. Please run 'sudo raspi-config'\r\n\r\npi@raspberrypi:~$<\/pre>\n<\/blockquote>\n<p>Hooray!\u00c2\u00a0 You are logged in and the world is your lobster.\u00c2\u00a0 From now on we&#8217;ll be typing commands to do things.\u00c2\u00a0 Whenever you see the line that says &#8220;pi@raspberrypi:~$&#8221; (or a variant of it), it means the Pi is waiting for you to type something in.<\/p>\n<h3>5.\u00c2\u00a0 Initial configuring<\/h3>\n<p>You see that bit where it says &#8220;NOTICE: the software on this Raspberry Pi has not been fully configured. Please run &#8216;sudo raspi-config'&#8221;?\u00c2\u00a0 That&#8217;s sound advice.\u00c2\u00a0 Type <strong><tt>sudo raspi-config<\/tt><\/strong> or copy and paste the words from the login text.<\/p>\n<blockquote>\n<pre>\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c2\u00a4 Raspberry Pi Software Configuration Tool (raspi-config) \u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2 Setup Options\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 1 Expand Filesystem\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Ensures that all of the SD card s\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 2 Change User Password\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Change password for the default u\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 3 Enable Boot to Desktop\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Choose whether to boot into a des\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 4 Internationalisation Options\u00c2\u00a0\u00c2\u00a0 Set up language and regional sett\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 5 Enable Camera\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Enable this Pi to work with the R\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 6 Add to Rastrack\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Add this Pi to the online Raspber\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 7 Overclock\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Configure overclocking for your P\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 8 Advanced Options\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Configure advanced settings\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 9 About raspi-config\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Information about this configurat\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &lt;Select&gt;\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 &lt;Finish&gt;\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c3\u00a2\r\n\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2\u00c3\u00a2<\/pre>\n<\/blockquote>\n<p>You will see a menu pop up with loads of options.\u00c2\u00a0 Move the highlighted line with the up\/down arrow keys and hit return to select an option.\u00c2\u00a0 The options in &#8220;&lt;&gt;&#8221;s are selectable with the tab button, so tabbing twice would take you to the &#8220;Finish&#8221; option, where you hit return to do it.<\/p>\n<ul>\n<li>If your SD card is larger than 2GB then choose option 1 &#8211; &#8220;Expand Filesystem&#8221;.\u00c2\u00a0 This will allow you to use all the card&#8217;s memory rather than just 2GB of it.<\/li>\n<li>Don&#8217;t bother with 2 &#8211; &#8220;Change user password&#8221;.\u00c2\u00a0 We&#8217;ll be getting rid of the user in a minute anyway.<\/li>\n<li>Don&#8217;t do 3 &#8211; &#8220;Boot to desktop&#8221; either.\u00c2\u00a0 We are being macho and using the command line only.<\/li>\n<li>Select 4 &#8211; &#8220;Internationalisation Options&#8221; to go to the options page to set the timezone and &#8220;locale&#8221; (which sets various preferences like number format, date-time format) to your country.\u00c2\u00a0 &#8220;Timezone&#8221; is fairly straightforward, but &#8220;locale&#8221; is less so.\u00c2\u00a0 It offers you a list of baffling lines of text, which is comprised of\u00c2\u00a0 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Locale\"><tt>language_territory.codeset<\/tt><\/a> with abbreviations for &#8220;language&#8221; and &#8220;territory&#8221;.\u00c2\u00a0 If you are in the UK then &#8220;en_GB.UTF-8 UTF-8&#8221; is the one you want.\u00c2\u00a0 When you find the one you want, hit the space bar to star it and then tab a couple of times to the &#8220;OK&#8221; button.<\/li>\n<li>7 &#8211; Overclock: This setting allows you to speed up your pi by tweaking the clock speed and voltage of the CPU.\u00c2\u00a0 Higher values mean your Pi runs faster, but too high a value could make it unstable.\u00c2\u00a0 Experiment a bit with it and if you find you have problems, lower the settings until it&#8217;s happy.<\/li>\n<\/ul>\n<p>There are a couple of things in 8 &#8211; &#8220;Advanced options&#8221; that we need to do, so select it and choose:<\/p>\n<ul>\n<li>A3 &#8211; &#8220;Memory Split&#8221;:\u00c2\u00a0RAM on the Pi is split between the CPU and graphics chip (GPU).\u00c2\u00a0 As it\u00e2\u20ac\u2122s not plugged into the TV you don\u00e2\u20ac\u2122t need graphics.\u00c2\u00a0 Choose this option and enter a number for how much memory the GPU should have.\u00c2\u00a0 The number to use is 16, which is the minimum memory you can assign for the GPU.<\/li>\n<li>A4 &#8211; &#8220;SSH&#8221;: Make sure that this is set to &#8220;Enable&#8221;.\u00c2\u00a0 Otherwise you won&#8217;t be able to log in again.<\/li>\n<\/ul>\n<p>Once you&#8217;ve finished with the config program, press Tab twice to highlight &#8220;Finish&#8221; and hit return.\u00c2\u00a0 You can reboot your Pi when prompted or drop back to the command line (&#8220;pi@raspberrypi ~ $&#8221;) and type <strong><tt>sudo reboot<\/tt><\/strong> to do it manually.\u00c2\u00a0 Leave it for a couple of minutes and then log in again (pi\/raspberry).\u00c2\u00a0 As a quick check to see if your Pi is now using the whole SD card, type <strong><tt>df -h<br \/>\n<\/tt><\/strong><\/p>\n<blockquote>\n<pre>naich@raspberrypi ~ $ df -h\r\nFilesystem\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Size\u00c2\u00a0 Used Avail Use% Mounted on\r\nrootfs\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 3.6G\u00c2\u00a0 3.4G\u00c2\u00a0\u00c2\u00a0 72M\u00c2\u00a0 98% \/\r\n\/dev\/root\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 3.6G\u00c2\u00a0 3.4G\u00c2\u00a0\u00c2\u00a0 72M\u00c2\u00a0 98% \/\r\ntmpfs\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 22M\u00c2\u00a0 208K\u00c2\u00a0\u00c2\u00a0 22M\u00c2\u00a0\u00c2\u00a0 1% \/run\r\ntmpfs\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 5.0M\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 0\u00c2\u00a0 5.0M\u00c2\u00a0\u00c2\u00a0 0% \/run\/lock\r\ntmpfs\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 44M\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 0\u00c2\u00a0\u00c2\u00a0 44M\u00c2\u00a0\u00c2\u00a0 0% \/tmp\r\ntmpfs\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 10M\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 0\u00c2\u00a0\u00c2\u00a0 10M\u00c2\u00a0\u00c2\u00a0 0% \/dev\r\ntmpfs\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 44M\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 0\u00c2\u00a0\u00c2\u00a0 44M\u00c2\u00a0\u00c2\u00a0 0% \/run\/shm\r\n\/dev\/mmcblk0p1\u00c2\u00a0\u00c2\u00a0 56M\u00c2\u00a0\u00c2\u00a0 34M\u00c2\u00a0\u00c2\u00a0 23M\u00c2\u00a0 61% \/boot\r\nnaich@raspberrypi ~ $<\/pre>\n<\/blockquote>\n<p>Look at the line that starts &#8220;rootfs&#8221;.\u00c2\u00a0 The &#8220;Size&#8221; column should report something close to the size of your card &#8211; in this case it&#8217;s a 4GB card.\u00c2\u00a0 If it still says it&#8217;s under 2GB then the resizing didn&#8217;t work.\u00c2\u00a0 You could try resizing it with the configuration program again (<strong><tt>sudo raspi-config<\/tt><\/strong>) or <a href=\"http:\/\/elinux.org\/RPi_Resize_Flash_Partitions#Manually_resizing_the_SD_card_on_Raspberry_Pi\">use this tutorial<\/a>.<\/p>\n<p>If you are familiar with Linux on the command line you can stop reading my wibblings now.\u00c2\u00a0 You have, for all intents and purposes, installed Debian Wheezy on your Pi.\u00c2\u00a0 Go forth and do with it what you will.\u00c2\u00a0 The rest of you can read on while we do some basic maintenance and then add some USB storage, install a <a href=\"http:\/\/www.transmissionbt.com\/\">Bittorrent client<\/a> to download your perfectly legal torrents and a <a href=\"http:\/\/mediatomb.cc\/\">uPNP Media Server<\/a> to watch them on your TV, PS3 or whatever.<\/p>\n<p><a title=\"Another pi pun\" href=\"http:\/\/naich.net\/wordpress\/?p=526\">Continued here&#8230;<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Continued from here. Your Pi is now sitting in the corner of the room, blinking its lights at you and presumably working.\u00c2\u00a0 Shall we see if we can do something with it? 3.\u00c2\u00a0 Setting up the interweb Your Pi is working and sitting on the network, waiting for you.\u00c2\u00a0 But where is it?\u00c2\u00a0 You need [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74,102],"tags":[],"class_list":["post-457","post","type-post","status-publish","format-standard","hentry","category-geek","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/naich.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/naich.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/naich.net\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/naich.net\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/naich.net\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=457"}],"version-history":[{"count":83,"href":"https:\/\/naich.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/457\/revisions"}],"predecessor-version":[{"id":485,"href":"https:\/\/naich.net\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/457\/revisions\/485"}],"wp:attachment":[{"href":"https:\/\/naich.net\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/naich.net\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/naich.net\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}