Difference between revisions of "Blog 01"

From BitWizard WIKI
Jump to: navigation, search
(In this text Harry explains how he got his Raspberry Pi ready to be used.)
 
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
My name is Harry. I just started learning to work with the Raspberry Pi.  
 
My name is Harry. I just started learning to work with the Raspberry Pi.  
( I have the Raspberry Pi 2 ) In this blog I will keep you posted about my Raspberry Pi progress.  
+
( I have the Raspberry Pi 2 ) In this [[Blog list]] I will keep you posted about my Raspberry Pi projects.  
The first thing I want to happen is to get the Raspberry pi to work.  
+
The first thing I want to happen is to get the Raspberry Pi to work.  
  
 
For this I had to download the software:  
 
For this I had to download the software:  
Raspbian
+
[https://www.raspberrypi.org/downloads/raspbian/ Raspbian ]
https://www.raspberrypi.org/downloads/raspbian/
 
  
  
To get Raspbian on my 4 gigabyte micro-SD card, I had to follow the steps from the Raspberry site.
+
To get Raspbian on my 4 gigabyte micro-SD card, I had to follow the steps from the [https://www.raspberrypi.org/documentation/installation/installing-images/ Raspberry site.] I used the linux version. First I had to get the micro-SD to work with my computer. What I did was to get the micro-SD card in a Micro SD-adapter.  
(https://www.raspberrypi.org/documentation/installation/installing-images/ ) I used the linux version. First I had to get the micro-SD to work with my computer. What I did was to get the micro-SD card in a Micro SD-adapter.  
+
To look if the computer could find the device I had to write in my terminal the code:  
To look if the computer could find the device I had to write in my terminal the code: df -h     
+
df -h     
  
 
The results was that I got the a big list of hardware that it saw. All down in the list was my micro-SD with the names  
 
The results was that I got the a big list of hardware that it saw. All down in the list was my micro-SD with the names  
Line 19: Line 18:
  
 
To make my micro-SD open for editing I used the command:
 
To make my micro-SD open for editing I used the command:
umount /dev/sda1
+
umount /dev/sda1
  
  
 
To eventually get the file over on the Micro-SD:
 
To eventually get the file over on the Micro-SD:
dd bs=4M if=2015-05-05-raspbian-wheezy.img of=/dev/sda
+
dd bs=4M if=2015-05-05-raspbian-wheezy.img of=/dev/sda
 
This took around 10 minutes.  
 
This took around 10 minutes.  
  
 
At last I did:
 
At last I did:
sync
+
sync
 
To make sure that it is safe to take the micro-SD out.  
 
To make sure that it is safe to take the micro-SD out.  
  
Line 34: Line 33:
  
 
Now it is time to turn on the Raspberry Pi  to put a micro-usb charger in it.  
 
Now it is time to turn on the Raspberry Pi  to put a micro-usb charger in it.  
When the green led is blinking it means, that there are no problems with the Raspberry Pi.  
+
You have to wait until the green flickering led is done.  
  
 
Now on the computer I have to open a terminal. I do this by doing: CTRL + ALT + T(linux)
 
Now on the computer I have to open a terminal. I do this by doing: CTRL + ALT + T(linux)
Line 42: Line 41:
  
 
In the terminal I have to write:  
 
In the terminal I have to write:  
ssh pi@192.168.234.66
+
ssh pi@192.168.234.66
This is for to connect to the pi with the ip-address.  
+
This is for to connect to the PI using it's IP address. For the IP address, consult your system administrator. Or sometimes your router's status page.  
  
You can find your ip-address with typing in the terminal:
+
You can find your own ip-address on linux by typing in the terminal:
sudo ifconfig
+
sudo ifconfig
  
Your Ip-adress will be visible after:
+
 
 +
Your IP-adress will be visible after:
 
inet addr:
 
inet addr:
  
So at my was visible:  
+
So on my PI was visible:  
 
  inet addr:192.168.234.66  
 
  inet addr:192.168.234.66  
  
It then asks about the Password. That is: Raspberry ( That is the password of every Raspberry Pi, until the owner of the Pi of course changes the password. )  
+
(but you can't do that until you have a connection. On the other hand, you can do that if you (temporarily) have a monitor and keyboard connected)
 +
 
 +
It then asks about the Password. That is: "raspberry" ( That is the password of the pi user on every Raspbian install, until the owner of the Pi of course changes the password. )  
 
When you type the letters and the amount of letters will not be visible.  
 
When you type the letters and the amount of letters will not be visible.  
  
 
Now I can type terminal commands to the Raspberry! And work on Raspberry Pi projects!
 
Now I can type terminal commands to the Raspberry! And work on Raspberry Pi projects!
 +
 +
 +
 +
== Changing password ==
 +
 +
To change the password on the Raspberry Pi, you have to type:
 +
passwd
 +
 +
Your new pass word has to be at least 6 letters!
 +
Also it will check if the password isn't too easy. ( so try to also use numbers and capital letters )
 +
Otherwise you will get:
 +
Bad: new password is too simple
 +
 +
Your password will be invisible, while typing. So look closely at what you are typing!

Latest revision as of 14:07, 21 September 2015

Hello,

My name is Harry. I just started learning to work with the Raspberry Pi. ( I have the Raspberry Pi 2 ) In this Blog list I will keep you posted about my Raspberry Pi projects. The first thing I want to happen is to get the Raspberry Pi to work.

For this I had to download the software: Raspbian


To get Raspbian on my 4 gigabyte micro-SD card, I had to follow the steps from the Raspberry site. I used the linux version. First I had to get the micro-SD to work with my computer. What I did was to get the micro-SD card in a Micro SD-adapter. To look if the computer could find the device I had to write in my terminal the code:

df -h     

The results was that I got the a big list of hardware that it saw. All down in the list was my micro-SD with the names /dev/sda1 & /dev/sda2 Note: This is unusual. (Normally it would be sdb or sdc )

To make my micro-SD open for editing I used the command:

umount /dev/sda1


To eventually get the file over on the Micro-SD:

dd bs=4M if=2015-05-05-raspbian-wheezy.img of=/dev/sda

This took around 10 minutes.

At last I did:

sync

To make sure that it is safe to take the micro-SD out.

Now the Micro-SD has Raspbian it is time to get the Raspberry Pi to work. After I unpackaged the Raspberry Pi, I first had to connect it with my monitor. For this I didn't use a hdmi, like what normally everybody does. I connected my Raspberry Pi with an Ethernet cable to my router that is connected with my PC. The main reason I did this was that my monitor didn't support hdmi and that it I now could use my Raspberry Pi on a window, while continuing to work on my workstation. With that I could search for advice on the Internet for programming the Raspberry Pi, while working on it.

Now it is time to turn on the Raspberry Pi to put a micro-usb charger in it. You have to wait until the green flickering led is done.

Now on the computer I have to open a terminal. I do this by doing: CTRL + ALT + T(linux) ( In windows you have to open cmd. )


In the terminal I have to write:

ssh pi@192.168.234.66

This is for to connect to the PI using it's IP address. For the IP address, consult your system administrator. Or sometimes your router's status page.

You can find your own ip-address on linux by typing in the terminal:

sudo ifconfig


Your IP-adress will be visible after: inet addr:

So on my PI was visible:

inet addr:192.168.234.66 

(but you can't do that until you have a connection. On the other hand, you can do that if you (temporarily) have a monitor and keyboard connected)

It then asks about the Password. That is: "raspberry" ( That is the password of the pi user on every Raspbian install, until the owner of the Pi of course changes the password. ) When you type the letters and the amount of letters will not be visible.

Now I can type terminal commands to the Raspberry! And work on Raspberry Pi projects!


Changing password

To change the password on the Raspberry Pi, you have to type:

passwd

Your new pass word has to be at least 6 letters! Also it will check if the password isn't too easy. ( so try to also use numbers and capital letters ) Otherwise you will get:

Bad: new password is too simple 

Your password will be invisible, while typing. So look closely at what you are typing!