Raspberry Pi via ssh

So up until this point we have our Raspberry Pi connected to the monitor and have a second mouse and keyboard lying around, which is not very practical isn’t it? This article will show you how simple it is to connect to your Raspberry Pi over ssh and get rid of that redundant keyboard, mouse and free up your second monitor!

Requirements:

  • Raspberry Pi and your computer MUST be on the same network.
  • your computer must be on
  • your Raspberry Pi must be on
  • you must have your routers login and password
  • PuTTY

So the first and most radical step is to disconnect the Raspberry Pi from the monitor you have and disconnect the mouse and keyboard from it, only leave the Ethernet and Power connections. Now your desk will be clutter free again!

Now it’s time to connect to you router and find out what is your Raspberry Pi IP on your local network (this is why your PC and Raspberry Pi must be on the same network).

Most routers default local ip adresses are 192.168.0.1 or 192.168.1.1, so try  both of them, just copy the from here to your web browser and go to it.

Mine was http://192.168.1.254/, it was different because I am accessing it over an access point.

router home page

You should see something like this, it may be different dependent on your routers model. Mine is Pirelli DRG A125G.

So now you must login to your router, by default most routers logins are  admin  or administrator, and the password may be no password at all, admin  or administrator, if you’ve tried them all and with no luck, try looking on the router it self form the login and password, many ISP’s provide a sticker with login credentials, try googling your router model and it’s default credentials, or try and contact your ISP for them.

So i assume that you’ve logged in to your router, now you need to find a network map where it list all the connected devices to it. In most cases it’s your routers main page, so you don’t have to look for it.

network map

In my case it was the first page after logging in. Now in the “Local Network” window we can see a device named “raspberrypi”, it’s our Raspberry Pi, it’s name liked this by default, so you should find it easily.

In this case, my Rasberry Pi local IP address is 192.168.1.64, your’s most probably will be different then mine, so write it down, we will need it later.

Now after writing down your Raspberry Pis’ local IP address you can close the routers’ web page.

Now you’ll have to download a SSH client if you are using windows.

I highly recommend PuTTY, you can download it from here.

Download it and launch the exe file.

putty 1

A window like above will appear, and just fill it in with your Raspberry Pi IP address like I did, Port 22 and SSH will be chosen by default. Now just click Open.

putty 2your login by default it “pi” and the password is “raspberry”, when you’ll be typing the password in, down be afraid if star(*) symbols won’t appear, it’s a terminal and a security thing. Just type it in and hit enter and BAM! we are in! Now we are connected to our raspberry pi an we can do anything we want.

First of all, I highly suggest we change the users password for a more secure one, because in future tutorials we will be exposing our Pi to the internet!

Just input this command to PuTTY:

passwd

Type in you current password which is “raspberry”, and type/retype a new password.

And this is what you’ll get if you’ve done everything correctly:

putty 3And this is it. If you have any questions or suggestions, feel free to leave them in the comments or write me an email to paulius@janciukas.lt

In the next article I will explain how to forward you’r ports and create a Apache server and a website for everyone to see.

Installing an OS on your Raspberry Pi

Today we will overview the fast process of installing an OS on your Raspberry Pi using Windows.

What you will need:

  • An SD card  with at least 8 Gigs of storage, and which is not slower the Cl 10
  • A Raspberry Pi
  • Micro USB PSU which outputs at least 5 Volts and 2 Amps.
  • USB Keyboard (any keyboard will do, event fully led backlit will function properly)
  • USB Mouse
  • HDMI cable
  • A monitor with HDMI input
  • SD card reader (even an android phone will do, I will explain this latter in this article)
  • Internet and an Ethernet cable
  • A case (optional)

So lets begin!

If you have a case, don’t put you Pi in it at first, I made this mistake myself, pulling out the SD card is harder (depends on the case you have) then you think.

Take your Pi and connect it to the Internet via an Ethernet cable, plug in your mouse and keyboard and plug in the monitor via the HDMI cable. Do not connect the power just jet.

Take your SD card and plug it in your SD card reader, the card must be formatted as FAT32 if it’s not then formate it. I don’t need to explain the formatting part to you guys, you already have a Pi so you must be good with tech, and if you don’t know how I would me more then happen to help you out in the comments.

In my case, I couldn’t follow the guide on raspberry.org which insisted on you using Win32DiskImager. I’ve tried it and my Pi would boot-up. So here is my way of doing it.

Download the Image for NOOBS, extract all the files and coppy all of them to you Raspberry Pi, you can do this event with your phone, just put the SD card in your phone and plug it to the computer.

Now put the SD card in your Pi, connect the power cable and wait. The Pi will bootup and propt that there is no MBR sector on your SD card, click next next next etc. nothing to hard, and you will get and error. Now unplug your Pi, take the SD card out connect it again to your computer (it will be empty), copy the same NOOB files again to your SD card.

Put your SD card again in to the Pi, connect the power cable and BAM!, it’s booting up again and you will not get that error again.

Just wait a minute and this will appear:

noobs

The Raspbain OS is already selected (this is the OS you’ve downloaded), now you can change the OS language and your keyboard layout. After choosing your preferences click install, and it’s all done, just wait for it to install.

Most probably at some time you will be asked to choose the GPU memory size, leave it at default (64) you will be able to change it latter in the OS itself. After a successful bootup, shut down the Pi using the raspbian OS (not unplugging it) to solidify the software. To boot it up just reconnect the cable.

If you will ever have to login in to your Pi remember that the default login is Pi and the default password is raspberry, I highly suggest you change it as soon as possible if you will be following my other guides, because they will contain thins such as exposing your Pi to the internet!

In the next guide I will explain how to connect to your Pi via SSH, how to install a basic version of Apache, and how to forward ports on your router so you can access you Pi from anywhere! (every body will be able to do it so make your Pi passwords strong)

If you have any questions or suggestions please leave them at the comment section or contact me via email paulius@janciukas.lt

 

 

New addition – The Raspberry Pi 2 B

I’ve got it! Finally after a few weeks of waiting.

I’ve just bought The Raspberry Pi 2 model B, and I am very excited of what I can do with it, all the project and endless possibilities!

First all the addition thins that I had to buy with it and the raspberry itself:

Raspberry 2 model B – 45.01 Eur

White Raspberry power supply (5 Volts, 2 Amps) – 7.26 Eur

White case for the Model B – 9.80 Eur

16 Gb SD card – 11.00 Eur

So it comes to a total of 73.07 Euros, witch is not a small sum here in Lithuania.

There are some things to know before buying your first Raspberry, it comes as it is, nothing is included with it except a small peace of paper with some warnings, like “don’t put it in water”.

For a power supply any phone micro USB charger goes as long as it can devil 5 Volts and 2 Amps. These are the minimum requirements. I’ve bought a separate one, because the Pi will be running 24/7, and this one matches the white theme.

The case is not necessary, and it depends from the conditions in which you are putting your Pi, if you need one. I’ve bought one mostly for aesthetic reasons, to continue the white theme.

Now for the SD card, the brand doesn’t matter, but it must be AT LEAST 8 Gigs, and CLASS 10 or faster, so I’ve picked up a 16 Gig one because it was not that much more expensive as the 8 Gig one. After all storage these days is very cheap.

Also for setting it up you’ll need a HDMI cable, a monitor, keyboard and a mouse (both must be with a USB connection).

The specifications of Raspberry Pi 2 Model B are:

  • A 900MHz quad-core ARM Cortex-A7 CPU
  • 1GB RAM
  • 4 USB ports
  • 40 GPIO pins
  • Full HDMI port
  • Ethernet port
  • Combined 3.5mm audio jack and composite video
  • Camera interface (CSI)
  • Display interface (DSI)
  • Micro SD card slot
  • VideoCore IV 3D graphics core

So the credit card sized computer has pretty impressive spec for it’s price.

my raspberry pi
And this is what the final product looks like.

A simple setup guide will follow soon.