-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started with the Raspberry Pi 2
Assuming you followed the same procedure for downloading the Pi image and formatting the SD card we can get started.
This article is a log of everything that I have done to set up my Raspberry Pi 2 the way that I want it.
I'm going to assume the WiFi drivers have not been installed on it yet so I go downstairs to my modem, hook up my hacktop to it using an Ethernet cable and open the lid on my Hacktop. (Remember! If you close the lid, the power goes off. Never close the lid!)
OK, so you boot up and see four Raspberry Pi images. This inidcates that Linux is ready to use all four CPU cores. Odroid had the same thing but with a standard Tux the Penguin logo for each core.
I goes through and automatically logs in to you raspberry pi with the username pi and default password raspberry. It also launches the GUI. I don't like this. It takes too long.
I'm hoping that these instructions will be no more difficult or different than the ones I wrote for the Raspberry Pi B and B+
DO NOT USE THE GUI PROGRAM! Use the Text interface program, raspi-config, other wise you'll end out doing this twice.
I've burned a version of Raspbian based on Debian Jessie on it.
-
Run raspi-config - Open an LX Terminal, resize the window a bit first, and run
sudo raspi-config. Arrow keys will let you choose an option. Enter will select it. -
Expand the file system. - If if you opened another tab in the LX Terminal and type into the terminal
df -hyou would notice that/dev/rootonly has a file size of 3.9 GB. But you bought a 64 GB microSD card. So you should expand the file system, otherwise your computer will think you have 4GB instead whatever size your SD card is. Mine is 64GB. SelectExpand Filesystem. Your file system should be resized to the correct size after it runs so press Enter again to select OK. You'll get a prompt saying that this change will not apply until the next reboot. -
Change the user password - On Raspberry Pi, You can change the password but you can NOT change the user name. If you are working on some secret security thing, go ahead and change the password. The default password is
raspberry. Select "Change the User Password". You will be told to press OK again. Enter the new password and enter it again to confirm it. WRITE IT DOWN somewhere. I'll probably make a post on my Tumblr explaining how to make a password notebook later. Sites that call themselves "password wallets" are STUPID, and can be hacked. They are also terrible ideas as once a cybercrook has your password wallet password, they have access to your other passwords. So keep your passwords in meatspace and use a notebook! -
Change the Boot Options. - Select "Boot Options". I didn't like that I when I started up my that it did an auto-login and launched the Graphica User Interface (GUI). I prefer to do that myself and I am savvy enough to know how to use the Command Line Interface (CLI) or Console. So select "Console". The GUI takes a while to boot up and can be resource intensive on the Raspberry Pi. But if you need it, you can run
startxlater. - Set the Internationalisation Options - Why is internationalization spelled internationalisation? Because British people! Select "Internationalisation Options". I've made note of this in the past about how if you are an American using a Raspberry Pi, you'll want to change the Locale, Timezone, and especially the Keyboard Layout. (See Steps 4 through 10 of the old instructions). Keep in mind, these recommendations are for someone living in the United States. YMMV.
- *Change Locale - Use the spacebar to deselect any option that was set by default, which was likely just
en_GB.UTF-8 UTF-8, but scroll through the entire list to be sure. Selecten_US.UTF-8 UTF-8and press enter. If you get another prompt asking what the default local for the system environment should be, selecten_US.UTF-8and press Enter. -
Change the Timezone. - Repeat Step 5 again and select "Change Timezone". Since I live in the United States, I will want to select
US. Elsewhere in the Americas, pickAmerica. Since I live in St. Louis, Missouri, I will want to selectCentral. Daylight Savings time settings are automatically set based on the geographic location database, which is why there are options for Arizona, Indiana, Alaska, and Hawaii. Remember, the Raspberry Pi does not come with a clock battery, so in order for it to sync, it music connect to the Internet. We will cover this later. -
Change the Keyboard Layout. - Probably the most important step. Repeat Step 5 and select "Change Keyboard Layout". Select 'Generic 105-key (Intl) PC' then press Enter. Scroll to the bottom and select
Otherthen press Enter. SelectEnglish (US)then press Enter. SelectEnglish (US) - English (international AltGr dead keys)(DO NOTEnglish (US) - English (US, international AltGr dead keys)!) then press Enter. SelectThe default for the keyboard layoutand press Enter. SelectNo compose keythen press Enter. SelectNothen press Enter. If we need to fix anything, we can usesudo dpkg-reconfigure keyboard-configurationlater. - Skip "Enable Camera" - Unless you have the Camera Accessory, you don't need to do anything with it.
- Skip "Add to Rastrack" - You don't need to register your geocoordinates with the Rastrack map unless you want to. If you are paranoid about privacy, you would definitely not want to do this anyway.
- Skip "Overclock". - Unless you know what you are doing, you definitely don't want to mess with this.
- Set Advanced Settings - Select "Advanced Options".
-
Enable Overscan - Select "Overscan" and then select "Enable". the Advanced Options section of the
raspi-configdocumentation can better explain it. It is likely enabled by default, but just to make sure do it anyway unless you have problems with borders or image shape on the screen you are using. - Change the hostname. - Repeat step 12. You should definitely change your Pi's hostname especially if you own more than one Raspberry Pi. This is helpful if you need to find it on your home router's list of connected devices. You'll be prompted as to what characters you can use. Press Enter then enter the new name. The default was 'raspberrypi'. Press Enter to submit.
-
Set the Memory Split. The memory split determines how much of the memory the Graphics Processing Unit (GPU) will get. The rest will go to the Central Processing Unit (CPU). Repeat step 12 and select "Memory Split". The default for Raspberry Pi has been 64 MB indicated by the value
64. But the Pi B+ had 512 MB. The Pi 2 has 1 GB, or 1024 MB, so it is probably OK to give the GPU just a little more, which is why I'm setting it to128. I would assume that using0would mean use the default, even so, I want to give a little more to the GPU this time around. I enter128and press Enter. -
Skip over SSH, Device Tree, SPI, I2C, and Serial. Only SSH, Device Tree, and Serial should be enabled (
Enable,YesandYes). Those are turned on by default. Don't touch the others unless you know how to use them. Device tree is enabled for Raspbian and NOOBS distributions. Check the documentation of other distributions for details. -
Skip Setting Audio. It should be set to
Automeaning if that if there is any sound it will go through HDMI (or for my Hacktop, the speakers on it) and go through to the audio jack on the Raspberry Pi when that is plugged in. - DO NOT RUN UPDATE YET! This should have been the first thing that should have been done, but it wasn't. So do this after we reboot.**
-
Finish - If you are in Advanced options still, use the right arrow key and move to Back then press enter to select. If you are at the top level menu, use the right arrow key and move to Finish to complete this process. You will be asked to reboot now. Close anything else that is open and select
Yes. -
Update and Upgrade - After the reboot, login. You should be in the text console. We have some work still to do.
sudo apt-get update && sudo apt-get upgrade -yto install and update software.
Here is where I stop because I don't know wether or not I should install wicd-curses. There is too much disinformation going on right now. This page has a list of methods. I hate using GUIs and from experience doing methods 2 and 3 SUCK. I'm trying to find out what program method 1 uses.
https://www.raspberrypi.org/documentation/configuration/raspi-config.md https://www.raspberrypi.org/documentation/configuration/config-txt.md