Saturday, June 28, 2014

How to host web pages in Raspberry Pi

Web Hosting in Raspberry Pi

Its easy to host web pages in your running Raspberry Pi.

1. Install Apache2

use the following link for the details - http://www.raspberrypi.org/documentation/remote-access/web-server/apache.md

sudo apt-get install apache2 -y

2.Once you install start  the apache server

follow link - http://httpd.apache.org/docs/2.2/stopping.html

3. once you type your raspberrypi ip address in address bar in your computer , it will load the default of Apache. you can test apache installation that way.

In order to change default apache root directory ,edit file 'default' file in the directory below

/etc/apache2/sites-avaiable

edit the following and save the file.

DocumentRoot 'your project library'

'Your project library'
>
 
You can browse the Raspberry project folder html, by giving pi ipaddress/first.html from your computer.


Friday, June 27, 2014

Raspberry Pi connecting with Laptop and Android phone

Connect raspberry pi with your laptop.

1. Raspberry pi should be up and running
2. Connect LAN Cable to the router
3. Set up a static IP address to the Pi.
https://www.modmypi.com/blog/tutorial-how-to-give-your-raspberry-pi-a-static-ip-address 

4. Install Putty software in your laptop. For Ubuntu linux machines use Synaptic Package manager for download and install Puttysoftware.




Android - connection with Raspberry Pi

1.Install VNCSERVER on your Pi


sudo apt-get update
sudo apt-get install tightvncserver

2. Install  androidvnc in your android phone

http://raspi.tv/2012/install-and-use-tightvnc-remote-desktop-on-raspberry-pi-through-windows-android-or-ios

3. In Raspberry Pi board run vncserver command

4. Configure AndroidVNC in phone with following and connect

NickName:Pi
address: static ip address of Raspberry Pi
Port: 5901