The only additional hardware required to do the remote login is a “cross-over LAN cable” which comes with connectors at both the end and an internal crossover connection between connectors at both the end.
The remote login can be easily done when there is a router available and the user can access the details of the devices connected to the router. All that required is to connect the one end of the LAN cable to the Ethernet port of the Raspberry pi and the other end to the connector slot of the router. Access the router and find out the IP of the connected devices. The Raspberry pi board will appear in the list with a name of “raspberrypi”. Note the IP and try to login using any remote login software for windows.
In most of the cases there won’t be any router available especially in outdoor conditions with a laptop. In such conditions one has to make a direct connection with the PC and the Raspberry pi. But inside the Ubuntu running in the Raspberry pi board the internet settings are not configured to enable a direct connection with the PC using LAN cable. One has to download server software which will provide an IP to the Raspberry pi board and help the PC to establish a connection with the raspberry pi board. The step-by-step connection process is explained in the following section.
Step: 1 Provide an IP to the windows
The software that can be used with windows7 is DHCP server software which can act as a server for the incoming connections. Before using this software there are few settings to be done in the windows to enable the connection. Go to the control panel > network and internet > network and sharing center > change adapter settings. Right click on the ‘Local Area connection’ and select ‘properties’.
Select the Internet protocol version 4 (IPV4) and click on the ‘properties’ button.
Now provide an IP and subnet mask for the windows. The IP used in this project is “192.168.0.30” and the subnet mask as “255.255.255.0”.
Now click OK and it is always better to reboot the system.
Step: 2 Connect the Raspberry pi
Once the booting process of the windows is completed, connect the Raspberry pi board to the Ethernet port of the PC. Connect a USB data cable to the Raspberry pi’s power port and the other end to the USB port of the PC. Wait for a while and an “Unidentified network” will appear in the “currently connected to” list usually present in the task bar.
Step: 3 Run the DHCP server software
Unzip the downloaded zip file of the DHCP server software into a folder. Find the executable file “dhcpwiz.exe” inside the folder and run it. Select the network adaptor as the ‘Local Area Connection’ as shown in the following snapshot.
Now click on the ‘Next’ button for this window and for every window that opens up, make sure that the default values are not changed. When the window with a title “writing the INI file” opens up, tick on the “Overwrite existing file” and click the button “Write INI file”.
Click on the ‘Next’ button again. In the following window that opens up, tick on the “Run DHCP server immediately”.
Click the ‘Finish’ button now and the following window appears.
Click on the “Continue as tray app.” Button now and click “Yes” on the confirmation window which follows it. Now the DHCP server is running in the windows system and the icon can be found in the task bar normally.
Step: 4 Reconnect the Raspberry pi board
Once the above steps are completed, power off the Raspberry pi board by removing the USB data cable from the PC. Now power on the board again and after the booting process of the Raspberry pi seems to be completed a notification appears from the DHCP server software as shown in the following snap shot.
Note the IP address as it is required to login to the Raspberry pi board using the software which helps in remote login.
Step: 5 Remote login using PUTTY
PuTTY is an SSH and telnet client software which is commonly used with the Windows platform. ]]>Download]]> the latest version of the PuTTY and open the .exe file.
As shown in the above snapshot, enter the previously noted IP and keep the default port number. Select SSH mode by clicking on the radio button “SSH”. Now click on the button “Open” and click “Yes” to the confirmation window follows and the PuTTY will display the TUI of the Raspberry pi board.
Type the default login and password and start exploring the Raspberry pi.
The default login and password are:
login as : pi
password : raspberry