What is Raspberry Pi

The Raspberry Pi is based on the Broadcom BCM2835 system on a chip (SoC) which includes an ARM1176JZF-S 700 MHz processor, VideoCore IV GPU, and was originally shipped with 256 megabytes of RAM, later upgraded (Model B and Model B+) to 512 MB. The system has Secure Digital (SD) or MicroSD (Model A+ and B+) sockets for boot media and persistent storage.

About Raspbian OS

Raspbian is a free operating system based on Debian optimized for the Raspberry Pi hardware. An operating system is the set of basic programs and utilities that make your Raspberry Pi run. However, Raspbian provides more than a pure OS: it comes with over 35,000 packages, pre-compiled software bundled in a nice format for easy installation on your Raspberry Pi.

Fun with Raspberry Pi

Time to get creative with your computing -- here are our favourite fun things you can do with your Raspberry Pi.

MAKE RESOURCES

Resources. Free resources to teach, learn and make with Raspberry Pi. Teach. Schemes of work to teach with Raspberry Pi · Learn. Exercises to learn with.

Python (programming language)

Python is a widely used general-purpose, high-level programming language.Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java.The language provides constructs intended to enable clear programs on both a small and large scale.

RASPBERRY PI

The Raspberry Pi is a credit card-sized single-board computer developed in the UK by the Raspberry Pi Foundation with the intention of promoting the teaching of basic computer science in schools. Tools available are Python as the main programming language, with support for C, C++, Java, Perl and Ruby.
Showing posts with label Ethernet. Show all posts
Showing posts with label Ethernet. Show all posts

Thursday, 4 December 2014

Configuration of Ethernet on Raspberry Pi

Step 1: Review current network settings(to see the prev net config)

From the command prompt or LXTerminal:
Type the command "ifconfig" this command will display the current network settings.

Step 2: Backup the current network configuration

It is a good idea to make a backup of the interfaces file if you are new to linux:
so type the following commands in the lx terminal

sudo cp /etc/network/interfaces /etc/network/interfaces.backup

Step 3: Modify the network settings

To edit the network setting you must edit the interfaces file.  The network can use a dynamic (DHCP) IP address or a static (set) IP address.  If you want to remotely login and control the Raspberry Pi, it is a good idea to use a static IP address.

The following command can be used to update the file in the linux terminal:

sudo nano /etc/network/interfaces

Look for the eth0 line which corresponds to the Raspberry pi ethernet (RJ45) port.
edit the file to look similar to this:
iface eth0 inet loopback                                    
iface eth0 inet static

change them as to the properties of the wifi or the lan cable  that are being used by the user for  example (by using the echo wl obtaining the ip of it and changes are made as follows)

iface eth0 inet loopback                                    
iface eth0 inet static
address 10.66.12.139- the last number is as you desired(IP address depends on network connected)
netmask 255.255.255.0
gateway 1o.66.12.254
Set the address to the IP address you want the Raspberry Pi to occupy.

Once the file has been updated, use ctrl x to save and exit

NOTE:No extra new lines or the space not to be added 

Step 4: Restart the Raspberry Pi
Once the interfaces files has been updated, you must restart the Raspberry Pi for the changes to take effect.

Used to following command to restart:

sudo shutdown -r now

Step 5: Test the new network setup

Use the "ping" command to confirm that the Raspberry Pi is on the network and talking to another computer also on the network.

If you have trouble pinging other computers on the network work, check the following:


1. Confirm that the ethernet cable is firmly connected to the Raspberry Pi and network switch.
2. Confirm that the IP address, mask and gateway are correct.
3. If pinging a Windows machine, sometimes security setting prevent responding to a ping request.

For this type ping 10.66.12.138    the IP should be similar to the IP of the raspberry pi given in the previous step.