Setting up a Headless Raspberry Pi:Part 3

Now that you have found the IP address of the raspberry pi we can proceed further. We can log into the pi using ssh,the secure shell.
ssh [options] username@remote computer

By default the raspberry Pi has a username “pi” and the password “raspberry”(without quotes).
The complete command looks like:
ssh pi@192.168.0.101

As this is the first time the pi has been connected to, ssh will tell you that, “The authenticity of host [host name] can’t be established”. You don’t need to worry about this.Just proceed by typing yes.

First of all this is a text interface so mouse cannot be used. You move between the different items with the arrow keys and select them by hitting enter. If you need to select a check box on one of the later screens, you hit space, and when you’re done, you move between the list of actions and the buttons at the bottom by pressing the “tab” key.

Have FUN!!

Advertisements

Setting up a Headless Raspberry Pi:Part 2

So, now you have connected your pi to either your router, network or computer. Plug in the power supply and turn it on. You now have a working Raspberry Pi (HEADLESS!!) Let’s configure it. The first thing that we need to do is find the IP address of the raspberry pi.
Depending on how you connected the pi to your network , 3 cases may arise.
1.) Pi connected to computer :
You need to check the log of the computer to find the address assigned to the raspberry pi.In your terminal type:
tail /var/log/syslog

This command shows the last 10 lines of the log file.Look for a line which says dnsmasq-dhcp.If you don’t find it try typing :
grep dnsmasq-dhcp /var/log/syslog
This will search for dnsmasq-dhcp in the system log and return the results.The most recent connection made would be the raspberry pi.The IP address followed by the mac address of the raspberry pi will be printed.
2.)Pi connected to router :
This is simple.Just log into your router’s system setting and look for the routing table where the router registers the IP and mac addresses of the connections it has made.
3.)Pi attached to a network :
Install zenmap:
sudo apt-get install zenmap
Run zenmap as root:
sudo zenmap
Find out your IP range. We are interested in the interface that is connected to the same network as the pi. For example since I connected my raspberry to the router and my router has a netmask of 255.255.255.0, and my system IP is 192.168.0.100, so the router will give out IP address in the range 192.168.0.0-192.168.0.255.
For this case enter 192.168.0.* in the target box of zenmap and let it scan. The zenmap will scan the network and return the IP address alongside the mac address of the pi.

Setting up a Headless Raspberry Pi:Part 1

So you have bought a raspberry pi but missed to buy a screen for it and are clueless right now as to what are you going to do. This post is for you.
I am working on Ubuntu ,however the steps will be very much similar for any other operating system. I assume you do have an internet connection and a spare network socket(either in your system or you have a router).
Stuff required:
1.) A raspberry pi(Model B)
2.) Power adapter for raspberry pi
3.) An SD card(min 4GB)
4.) An ethernet cable(to connect the pi to internet)

Alright then, first you need to set up the operating system for the raspberry pi.
For general usage Raspbian is the most comfortable OS. Of the different distributions, there are a few different images you can get, which have different default setups, but don’t worry about them for now. Just go get the default Raspbian Image from Raspbian

Now, there are some nice easy graphical programs for writing images to disk. If you want to take this route, install usb-creator-gtk and write the raspbian image onto the SD card.
Now you can stick the SD card in the pi and power it up.
However to use it you need to connect it to a network.

If you need to setup a shared connection to your pi, click on the networking icon in the top right hand of your screen and select “Edit Connections” . In the dialog box that pops up, making sure you are on the “Wired” tab, click “Add”. Give the connection a name, click on the “IPv4 Settings” tab and select “Shared to other computers” (all the other fields can be left as they are, though if you aren’t going to be leaving the pi connected to the computer in this manner permanently, you might want to uncheck “Connect Automatically”). Then click ok.

Now click the networking icon again in the top right hand corner, and select the connection you just created (you might first have to disconnect a wired connection if one is set to connect automatically). This will set up a small network consisting of your computer and the pi that is connected to your main internet connection.

MASM in Ubuntu

In this post I explain how to use MASM assembler with Ubuntu(Linux):
Installing Dosbox
Fire up the terminal and type:
sudo apt-get update
sudo apt-get install dosbox

For non-ubuntu users
Download Dosbox from here:Dosbox
Now install the tar file:
tar -xzvf dosbox-0.74.tar.gz
cd dosbox-0.74
./configure
make

Now download MASM assembler from here:
MASM
Extract the zip file in your home directory.
Now run dosbox and type:
mount c /home/username/8086
C:

In place of username type your in your computers name.
This will mount the MASM directory
And you are ready to do your labwork..!!