SlideShare ist ein Scribd-Unternehmen logo
1 von 19
A Presentation about
Raspberry Pi
Name: Mohammad Fahim Hossain
Id: C143080
5th semester
Dept of CSE,IIUC
What Is Raspberry Pi
• Credit-Card sized computer
• Developed in U.K by Raspberry Pi foundation in 2009.
• Project Initiated By Initiated by Eben Upton.
• Based on Broadcom chips.
• Supported by UCCL and Broadcom.
• Affordable
• Runs LINUX. Microsoft is developing Windows 10 for
newer boards.
• Consumes less than 5W of Power
• Supports Full HD Video Output (1080p), Multiple USB
Ports , etc
Basic Specifications of Raspberry Pi 1
Raspberry Pi 3 Model B
Specifications(Ruspberry Pi3)
1
SoC: Broadcom BCM2837
CPU: 4× ARM Cortex-A53, 1.2GHz
GPU: Broadcom VideoCore IV
RAM: 1GB LPDDR2 (900 MHz)
Networking: 10/100 Ethernet, 2.4GHz 802.11n wireless
Bluetooth: Bluetooth 4.1 Classic, Bluetooth Low Energy
Storage: microSD
GPIO: 40-pin header, populated
Ports: HDMI, 3.5mm analogue audio-video jack, 4× USB 2.0,
Ethernet, Camera Serial Interface (CSI), Display Serial
Interface (DSI)
Source: 1. https://www.raspberrypi.org/magpi/raspberry-pi-3-specs-benchmarks/
Benchmark Score of Raspberry Pi3
Supported Operating System
– Raspbian
– Fedora
– Raspbian
– Debian
– ArchLinux ARM
– Windows 10 On Raspberry Pi2
Making a web server using Raspberry pi
What are the equipments required to do
this project?
1.Raspberry Pi 2/B+
2. Wi-Fi router with access to internet
3. Wi-Fi dongle for Raspberry Pi or LAN
cable.
Here is the project map
STEP 1: Installing Apache, PHP and MySQL for your Raspberry Pi web server
1. Before we start, make sure your Raspberry Pi is up to date. For this the code in
terminal(as we are using Linux 16.04 OS) “sudo apt-get update”
2. we will start installing all the packages necessary for our raspberry pi web
server. For this purpose we need to get into the root of our system by using “sudo
bash” command.
3. Now lets install ‘Apache’ the main component of the project. For that, use the
following command, “apt-get install apache2 apache2-doc apache2-utils”
4. After this, it is time for PHP to get into our pi, “apt-get install libapache2-mod-
php5 php5 php-pear php5-xcache”
5. Now we should install the package for database connectivity, “apt-get install
php5-mysql”
6. Now we can use install the MySQL server which stores everything, our database
for the raspberry pi web server, “apt-get install mysql-server mysql-client”
7. During this installation, you will be asked for a password for the server. Enter a
password that you will remember. That’s it! You have completed the first step!
Now reboot the pi.
STEP 2: Testing the installed packages on our Raspberry Pi
For testing the presence of the installed server
and database. Type ‘localhost’ or ‘127.0.0.1’ in
the pi’s web browser. If you have ssh’d into it,
type the pi’s ip address in your browser. Now
you should see a page saying ‘It works!’.
Location of the webpage which is shown in
picture is named as index.html file in the
‘/var/www’ directory.
Now, for testing mysql on your raspberry
pi, open up LXTerminal and type as
follows, “sudo mysql -uroot -p”
STEP 3: Installing phpMyAdmin for your Raspberry Pi web server
phpMyAdmin is a free and open source
tool written in PHP intended to handle
the administration of MySQL with the
use of a web browser. This makes it
easier to control the database. So, to
install it for your raspberry pi web server,
you can use the following commands.
Open the terminal and let’s start with,”
sudo apt-get install phpmyadmin”
& Choose apache2.
Next, we will need to configure
the database phpmyAdmin
should use. For that you should
select Yes when asked
After this, you will be asked for an administrative password. Type in the password of
your MySQL database you installed earlier. Next, you will be asked for a custom
password for phpMyAdmin. I typed in the same password of MySQL, as it will be easier
to remember. If you wish, you can have another password also.
Now, we need to combine apache with phpMyAdmin. For that, you should edit the
apache2.conf file. For that, type the following in the terminal,” sudo nano
/etc/apache2/apache2.conf”
At the end of this file (navigate using Ctrl+V), add a line, ”Include
/etc/phpmyadmin/apache.conf”
Now restart the server using, “sudo /etc/init.d/apache2 restart”
Now, check out the link in your web browser: <pi’s ip address>/phpmyadmin or
localhost/phpmyadmin in your pi. You should see the same page in the next slide.
STEP 3: Installing phpMyAdmin for your Raspberry Pi web server
STEP 3: Installing phpMyAdmin for your Raspberry Pi web server
As the username, you can type in ‘root’ and
as the password, you can type in the
password you gave for the MySQL Server.
Now, you can have your own site by
customizing the index.html or by inserting
customized html file and renaming it as
index.html in the www folder. You can put
images, videos or whatever you want in the
www folder and access it in your Local
Area Network(LAN). Now that you also
have a database of your own and you can
maintain the site with it. So we can call it
your ‘Server’, a Raspberry Pi web server.
STEP 4: Give your Raspberry Pi a static IP address
Now, this is not possible to access the server from another network. User can only
access your server within the local Network. What we are going to do now is that we
are going to make our server available worldwide.
In this step, the IP Address of the pi is set to DHCP. We need to change that into a
static IP address. For that we need to edit a file in our pi.
Now edit the network interfaces. It is located in /etc/network/interfaces. For this in
the terminal type, “sudo nano /etc/network/interfaces”
The highlighted part, which
is iface eth0 inet
dhcp should be changed
to: iface eth0 inet static
STEP 4: Give your Raspberry Pi a static IP address
Now put the numbers in the network interface file,
numbers will change by the user.
address: It is the inet address, you got from ifconfig
command. You can give any number starting with
192.168.1.xxx. The xxx can be replaced with any
number. It is better you have it between 2 and 100.
Choosing a higher number is recommended since when
you have a lower number it may result in clash of IP
addresses. Two devices might have the same address.
That is the reason I gave it a higher number.
Netmask: It is the Mask address in the “ifconfig”
command.
Network: It is the Destination address you got from the
“netstat -nr “command.
Broadcast: It is the Bcast address you got from the
“ifconfig” command.
Gateway: It is the gateway address you got from the
netstat -nr command.
“Sh”
STEP 4: Give your Raspberry Pi a static IP address
Edting iface file now, press Ctrl+X to
save it and press y.
After this reboot your pi and check
the ifconfig command.
If inet address shows your new IP
Address its confirmed that the server
got a static IP address.
STEP 5: Finishing tasks.
First, we need to sign up for an account in www.no-ip.com. This service is for free.
What Dynamic DNS does is simple. Our ISP (Internet Service Provider) gives us an External IP
address, that is random. No-IP.com changes our IP Address into a URL. We also configure this in
our Router which will be shown soon. So, whenever our modem gets a new IP, it sends it to No-
IP.com by which they connect the new IP Address and our static URL for our Raspberry Pi web
server. The URL never changes but the IP does.
After account creation, you should activate your account using the e-mail sent by No-IP.com. You
can sign in to your account after the activation of the same. You can see your new URL in the
submenu Hostnames under Dynamic DNS Menu.
You can check your URL by clicking on it.
As your Raspberry Pi Web Server is just
set up, you can see the It Works! Page.
Everything is done. User can access it with just one URL. Accessible to the whole
World! All the best with your Server! User can make amazing websites easily using
the templates and styling using css available on the internet.
As the website has new domain name in the addressbar it will show the website
name instead of showing the static ip address of the server.
STEP 5: Finishing tasks.
Credits: https://diyhacking.com/raspberry-pi-web-server/

Weitere ähnliche Inhalte

Was ist angesagt?

Hive + Tez: A Performance Deep Dive
Hive + Tez: A Performance Deep DiveHive + Tez: A Performance Deep Dive
Hive + Tez: A Performance Deep DiveDataWorks Summit
 
Bcd and ascii arithmetic instructions
Bcd and ascii arithmetic instructionsBcd and ascii arithmetic instructions
Bcd and ascii arithmetic instructionsDr. Girish GS
 
Electronic mail protocols and operations
 Electronic mail protocols and operations Electronic mail protocols and operations
Electronic mail protocols and operationsVivekRajawat9
 
Ankara Spark Meetup - Big Data & Apache Spark Mimarisi Sunumu
Ankara Spark Meetup - Big Data & Apache Spark Mimarisi SunumuAnkara Spark Meetup - Big Data & Apache Spark Mimarisi Sunumu
Ankara Spark Meetup - Big Data & Apache Spark Mimarisi SunumuSerkan Sakınmaz
 
Grow and Shrink - Dynamically Extending the Ruby VM Stack
Grow and Shrink - Dynamically Extending the Ruby VM StackGrow and Shrink - Dynamically Extending the Ruby VM Stack
Grow and Shrink - Dynamically Extending the Ruby VM StackKeitaSugiyama1
 
High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017Netgate
 
Route Redistribution
Route RedistributionRoute Redistribution
Route RedistributionNetwax Lab
 
Cisco asa active,active failover configuration
Cisco asa active,active failover configurationCisco asa active,active failover configuration
Cisco asa active,active failover configurationIT Tech
 
2.apache spark 실습
2.apache spark 실습2.apache spark 실습
2.apache spark 실습동현 강
 
Building a Real-Time Analytics Application with Apache Pulsar and Apache Pinot
Building a Real-Time Analytics Application with  Apache Pulsar and Apache PinotBuilding a Real-Time Analytics Application with  Apache Pulsar and Apache Pinot
Building a Real-Time Analytics Application with Apache Pulsar and Apache PinotAltinity Ltd
 
Hoodie: Incremental processing on hadoop
Hoodie: Incremental processing on hadoopHoodie: Incremental processing on hadoop
Hoodie: Incremental processing on hadoopPrasanna Rajaperumal
 
Crunching Data In GeoServer: Mastering Rendering Transformations, WPS Process...
Crunching Data In GeoServer: Mastering Rendering Transformations, WPS Process...Crunching Data In GeoServer: Mastering Rendering Transformations, WPS Process...
Crunching Data In GeoServer: Mastering Rendering Transformations, WPS Process...GeoSolutions
 

Was ist angesagt? (20)

Hive + Tez: A Performance Deep Dive
Hive + Tez: A Performance Deep DiveHive + Tez: A Performance Deep Dive
Hive + Tez: A Performance Deep Dive
 
Bcd and ascii arithmetic instructions
Bcd and ascii arithmetic instructionsBcd and ascii arithmetic instructions
Bcd and ascii arithmetic instructions
 
Socket programming
Socket programming Socket programming
Socket programming
 
Electronic mail protocols and operations
 Electronic mail protocols and operations Electronic mail protocols and operations
Electronic mail protocols and operations
 
Ankara Spark Meetup - Big Data & Apache Spark Mimarisi Sunumu
Ankara Spark Meetup - Big Data & Apache Spark Mimarisi SunumuAnkara Spark Meetup - Big Data & Apache Spark Mimarisi Sunumu
Ankara Spark Meetup - Big Data & Apache Spark Mimarisi Sunumu
 
Hive(ppt)
Hive(ppt)Hive(ppt)
Hive(ppt)
 
Grow and Shrink - Dynamically Extending the Ruby VM Stack
Grow and Shrink - Dynamically Extending the Ruby VM StackGrow and Shrink - Dynamically Extending the Ruby VM Stack
Grow and Shrink - Dynamically Extending the Ruby VM Stack
 
OSPF Fundamental
OSPF FundamentalOSPF Fundamental
OSPF Fundamental
 
Hadoop Overview kdd2011
Hadoop Overview kdd2011Hadoop Overview kdd2011
Hadoop Overview kdd2011
 
Intro to HBase
Intro to HBaseIntro to HBase
Intro to HBase
 
High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017
 
Route Redistribution
Route RedistributionRoute Redistribution
Route Redistribution
 
8155 Basic Concepts
8155 Basic Concepts8155 Basic Concepts
8155 Basic Concepts
 
Cisco asa active,active failover configuration
Cisco asa active,active failover configurationCisco asa active,active failover configuration
Cisco asa active,active failover configuration
 
2.apache spark 실습
2.apache spark 실습2.apache spark 실습
2.apache spark 실습
 
Building a Real-Time Analytics Application with Apache Pulsar and Apache Pinot
Building a Real-Time Analytics Application with  Apache Pulsar and Apache PinotBuilding a Real-Time Analytics Application with  Apache Pulsar and Apache Pinot
Building a Real-Time Analytics Application with Apache Pulsar and Apache Pinot
 
CephFS Update
CephFS UpdateCephFS Update
CephFS Update
 
Hoodie: Incremental processing on hadoop
Hoodie: Incremental processing on hadoopHoodie: Incremental processing on hadoop
Hoodie: Incremental processing on hadoop
 
Data stage
Data stageData stage
Data stage
 
Crunching Data In GeoServer: Mastering Rendering Transformations, WPS Process...
Crunching Data In GeoServer: Mastering Rendering Transformations, WPS Process...Crunching Data In GeoServer: Mastering Rendering Transformations, WPS Process...
Crunching Data In GeoServer: Mastering Rendering Transformations, WPS Process...
 

Andere mochten auch

Raspberry pi and its some uses
Raspberry pi and its some usesRaspberry pi and its some uses
Raspberry pi and its some usesFahim Hossain
 
IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3Mohammad Qasim Malik
 
Exploring Raspberry Pi
Exploring Raspberry PiExploring Raspberry Pi
Exploring Raspberry PiLentin Joseph
 
Raspberry Pi Presentation
Raspberry Pi PresentationRaspberry Pi Presentation
Raspberry Pi PresentationGeekizer
 
A seminar report on Raspberry Pi
A seminar report on Raspberry PiA seminar report on Raspberry Pi
A seminar report on Raspberry Pinipunmaster
 
Android(os) and its use(without audio)
Android(os) and its use(without audio)Android(os) and its use(without audio)
Android(os) and its use(without audio)Fahim Hossain
 
Cuadro comparativo seguridad
Cuadro comparativo seguridadCuadro comparativo seguridad
Cuadro comparativo seguridadLuis Velasquez
 
Presentation on Raspberry Pi by Sazzad H. IIUC
Presentation on Raspberry Pi by Sazzad H. IIUCPresentation on Raspberry Pi by Sazzad H. IIUC
Presentation on Raspberry Pi by Sazzad H. IIUCshssn7
 
Surface modification to improve friction and galling
Surface modification to improve friction and gallingSurface modification to improve friction and galling
Surface modification to improve friction and gallingBrunocss
 
Html birth &amp; evolution
Html birth &amp; evolutionHtml birth &amp; evolution
Html birth &amp; evolutionAdil Nisar Khan
 
introduction to Raspberry pi
introduction to Raspberry pi introduction to Raspberry pi
introduction to Raspberry pi Mohamed Ali May
 
Coffee & Pi - Intro to Pi Workshop
Coffee & Pi - Intro to Pi WorkshopCoffee & Pi - Intro to Pi Workshop
Coffee & Pi - Intro to Pi WorkshopBrad ☼ Derstine
 

Andere mochten auch (20)

Raspberry pi and its some uses
Raspberry pi and its some usesRaspberry pi and its some uses
Raspberry pi and its some uses
 
Raspberry pi
Raspberry pi Raspberry pi
Raspberry pi
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3IOT Based Home Automation using Raspberry Pi-3
IOT Based Home Automation using Raspberry Pi-3
 
Exploring Raspberry Pi
Exploring Raspberry PiExploring Raspberry Pi
Exploring Raspberry Pi
 
Raspberry Pi Presentation
Raspberry Pi PresentationRaspberry Pi Presentation
Raspberry Pi Presentation
 
A seminar report on Raspberry Pi
A seminar report on Raspberry PiA seminar report on Raspberry Pi
A seminar report on Raspberry Pi
 
Android(os) and its use(without audio)
Android(os) and its use(without audio)Android(os) and its use(without audio)
Android(os) and its use(without audio)
 
1TTE JOSE PADILLA III MODULO
1TTE JOSE PADILLA III MODULO1TTE JOSE PADILLA III MODULO
1TTE JOSE PADILLA III MODULO
 
IoT Design Deck
IoT Design DeckIoT Design Deck
IoT Design Deck
 
Cuadro comparativo seguridad
Cuadro comparativo seguridadCuadro comparativo seguridad
Cuadro comparativo seguridad
 
Konstruktion omkring en Raspberry Pi
Konstruktion omkring en Raspberry PiKonstruktion omkring en Raspberry Pi
Konstruktion omkring en Raspberry Pi
 
Presentation on Raspberry Pi by Sazzad H. IIUC
Presentation on Raspberry Pi by Sazzad H. IIUCPresentation on Raspberry Pi by Sazzad H. IIUC
Presentation on Raspberry Pi by Sazzad H. IIUC
 
Materi ipa energi
Materi ipa energiMateri ipa energi
Materi ipa energi
 
Surface modification to improve friction and galling
Surface modification to improve friction and gallingSurface modification to improve friction and galling
Surface modification to improve friction and galling
 
Html birth &amp; evolution
Html birth &amp; evolutionHtml birth &amp; evolution
Html birth &amp; evolution
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
 
introduction to Raspberry pi
introduction to Raspberry pi introduction to Raspberry pi
introduction to Raspberry pi
 
Andres 2
Andres 2Andres 2
Andres 2
 
Coffee & Pi - Intro to Pi Workshop
Coffee & Pi - Intro to Pi WorkshopCoffee & Pi - Intro to Pi Workshop
Coffee & Pi - Intro to Pi Workshop
 

Ähnlich wie Project-make a public website server using raspberry pi

Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingBeni Krisbiantoro
 
Definitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source softwareDefinitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source softwareparves kamal
 
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP ProtocolSerial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP ProtocolSanjay Kumar
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installationfranbow
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreBenjamin Moore
 
Raspberry Pi - Lecture 6 Working on Raspberry Pi
Raspberry Pi - Lecture 6 Working on Raspberry PiRaspberry Pi - Lecture 6 Working on Raspberry Pi
Raspberry Pi - Lecture 6 Working on Raspberry PiMohamed Abdallah
 
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video APIDevelop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video APIEnablex io
 
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPHow To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPMatt Dunlap
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows Boxguest34a3a419
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows BoxJayanta Dash
 
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick NeshRaspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick NeshTE4P
 
Installing Lamp Stack on Ubuntu Instance
Installing Lamp Stack on Ubuntu InstanceInstalling Lamp Stack on Ubuntu Instance
Installing Lamp Stack on Ubuntu Instancekamarul kawnayeen
 
Uccn1003 -may10_-_lab_01_-_network_services_and_commands
Uccn1003  -may10_-_lab_01_-_network_services_and_commandsUccn1003  -may10_-_lab_01_-_network_services_and_commands
Uccn1003 -may10_-_lab_01_-_network_services_and_commandsShu Shin
 
Uccn1003 -may10_-_lab_01_-_network_services_and_commands
Uccn1003  -may10_-_lab_01_-_network_services_and_commandsUccn1003  -may10_-_lab_01_-_network_services_and_commands
Uccn1003 -may10_-_lab_01_-_network_services_and_commandsShu Shin
 

Ähnlich wie Project-make a public website server using raspberry pi (20)

Ex.no1
Ex.no1Ex.no1
Ex.no1
 
Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk Webhosting
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Its3 Drupal
Its3 DrupalIts3 Drupal
Its3 Drupal
 
Definitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source softwareDefinitive guide to setting up a lamp server using open source software
Definitive guide to setting up a lamp server using open source software
 
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP ProtocolSerial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
Serial Data from Arduino to Raspberry Pi to MySQL using CoAP Protocol
 
Lamp Server With Drupal Installation
Lamp Server With Drupal InstallationLamp Server With Drupal Installation
Lamp Server With Drupal Installation
 
Jones_Lamp_Tutorial
Jones_Lamp_TutorialJones_Lamp_Tutorial
Jones_Lamp_Tutorial
 
Raspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMooreRaspi_TOR_Access_Point_BenMoore
Raspi_TOR_Access_Point_BenMoore
 
Raspberry Pi - Lecture 6 Working on Raspberry Pi
Raspberry Pi - Lecture 6 Working on Raspberry PiRaspberry Pi - Lecture 6 Working on Raspberry Pi
Raspberry Pi - Lecture 6 Working on Raspberry Pi
 
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video APIDevelop Smart Solutions with Raspberry Pi and EnableX Live Video API
Develop Smart Solutions with Raspberry Pi and EnableX Live Video API
 
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMPHow To Deploy A Cloud Based Webserver in 5 minutes - LAMP
How To Deploy A Cloud Based Webserver in 5 minutes - LAMP
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows Box
 
Mantis Installation for Windows Box
Mantis Installation for Windows BoxMantis Installation for Windows Box
Mantis Installation for Windows Box
 
DNS,SMTP and POP3
DNS,SMTP and POP3DNS,SMTP and POP3
DNS,SMTP and POP3
 
main
mainmain
main
 
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick NeshRaspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
 
Installing Lamp Stack on Ubuntu Instance
Installing Lamp Stack on Ubuntu InstanceInstalling Lamp Stack on Ubuntu Instance
Installing Lamp Stack on Ubuntu Instance
 
Uccn1003 -may10_-_lab_01_-_network_services_and_commands
Uccn1003  -may10_-_lab_01_-_network_services_and_commandsUccn1003  -may10_-_lab_01_-_network_services_and_commands
Uccn1003 -may10_-_lab_01_-_network_services_and_commands
 
Uccn1003 -may10_-_lab_01_-_network_services_and_commands
Uccn1003  -may10_-_lab_01_-_network_services_and_commandsUccn1003  -may10_-_lab_01_-_network_services_and_commands
Uccn1003 -may10_-_lab_01_-_network_services_and_commands
 

Kürzlich hochgeladen

On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 

Kürzlich hochgeladen (20)

On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

Project-make a public website server using raspberry pi

  • 1. A Presentation about Raspberry Pi Name: Mohammad Fahim Hossain Id: C143080 5th semester Dept of CSE,IIUC
  • 2. What Is Raspberry Pi • Credit-Card sized computer • Developed in U.K by Raspberry Pi foundation in 2009. • Project Initiated By Initiated by Eben Upton. • Based on Broadcom chips. • Supported by UCCL and Broadcom. • Affordable • Runs LINUX. Microsoft is developing Windows 10 for newer boards. • Consumes less than 5W of Power • Supports Full HD Video Output (1080p), Multiple USB Ports , etc
  • 3. Basic Specifications of Raspberry Pi 1
  • 4. Raspberry Pi 3 Model B
  • 5. Specifications(Ruspberry Pi3) 1 SoC: Broadcom BCM2837 CPU: 4× ARM Cortex-A53, 1.2GHz GPU: Broadcom VideoCore IV RAM: 1GB LPDDR2 (900 MHz) Networking: 10/100 Ethernet, 2.4GHz 802.11n wireless Bluetooth: Bluetooth 4.1 Classic, Bluetooth Low Energy Storage: microSD GPIO: 40-pin header, populated Ports: HDMI, 3.5mm analogue audio-video jack, 4× USB 2.0, Ethernet, Camera Serial Interface (CSI), Display Serial Interface (DSI) Source: 1. https://www.raspberrypi.org/magpi/raspberry-pi-3-specs-benchmarks/
  • 6. Benchmark Score of Raspberry Pi3
  • 7. Supported Operating System – Raspbian – Fedora – Raspbian – Debian – ArchLinux ARM – Windows 10 On Raspberry Pi2
  • 8. Making a web server using Raspberry pi What are the equipments required to do this project? 1.Raspberry Pi 2/B+ 2. Wi-Fi router with access to internet 3. Wi-Fi dongle for Raspberry Pi or LAN cable. Here is the project map
  • 9. STEP 1: Installing Apache, PHP and MySQL for your Raspberry Pi web server 1. Before we start, make sure your Raspberry Pi is up to date. For this the code in terminal(as we are using Linux 16.04 OS) “sudo apt-get update” 2. we will start installing all the packages necessary for our raspberry pi web server. For this purpose we need to get into the root of our system by using “sudo bash” command. 3. Now lets install ‘Apache’ the main component of the project. For that, use the following command, “apt-get install apache2 apache2-doc apache2-utils” 4. After this, it is time for PHP to get into our pi, “apt-get install libapache2-mod- php5 php5 php-pear php5-xcache” 5. Now we should install the package for database connectivity, “apt-get install php5-mysql” 6. Now we can use install the MySQL server which stores everything, our database for the raspberry pi web server, “apt-get install mysql-server mysql-client” 7. During this installation, you will be asked for a password for the server. Enter a password that you will remember. That’s it! You have completed the first step! Now reboot the pi.
  • 10. STEP 2: Testing the installed packages on our Raspberry Pi For testing the presence of the installed server and database. Type ‘localhost’ or ‘127.0.0.1’ in the pi’s web browser. If you have ssh’d into it, type the pi’s ip address in your browser. Now you should see a page saying ‘It works!’. Location of the webpage which is shown in picture is named as index.html file in the ‘/var/www’ directory. Now, for testing mysql on your raspberry pi, open up LXTerminal and type as follows, “sudo mysql -uroot -p”
  • 11. STEP 3: Installing phpMyAdmin for your Raspberry Pi web server phpMyAdmin is a free and open source tool written in PHP intended to handle the administration of MySQL with the use of a web browser. This makes it easier to control the database. So, to install it for your raspberry pi web server, you can use the following commands. Open the terminal and let’s start with,” sudo apt-get install phpmyadmin” & Choose apache2. Next, we will need to configure the database phpmyAdmin should use. For that you should select Yes when asked
  • 12. After this, you will be asked for an administrative password. Type in the password of your MySQL database you installed earlier. Next, you will be asked for a custom password for phpMyAdmin. I typed in the same password of MySQL, as it will be easier to remember. If you wish, you can have another password also. Now, we need to combine apache with phpMyAdmin. For that, you should edit the apache2.conf file. For that, type the following in the terminal,” sudo nano /etc/apache2/apache2.conf” At the end of this file (navigate using Ctrl+V), add a line, ”Include /etc/phpmyadmin/apache.conf” Now restart the server using, “sudo /etc/init.d/apache2 restart” Now, check out the link in your web browser: <pi’s ip address>/phpmyadmin or localhost/phpmyadmin in your pi. You should see the same page in the next slide. STEP 3: Installing phpMyAdmin for your Raspberry Pi web server
  • 13. STEP 3: Installing phpMyAdmin for your Raspberry Pi web server As the username, you can type in ‘root’ and as the password, you can type in the password you gave for the MySQL Server. Now, you can have your own site by customizing the index.html or by inserting customized html file and renaming it as index.html in the www folder. You can put images, videos or whatever you want in the www folder and access it in your Local Area Network(LAN). Now that you also have a database of your own and you can maintain the site with it. So we can call it your ‘Server’, a Raspberry Pi web server.
  • 14. STEP 4: Give your Raspberry Pi a static IP address Now, this is not possible to access the server from another network. User can only access your server within the local Network. What we are going to do now is that we are going to make our server available worldwide. In this step, the IP Address of the pi is set to DHCP. We need to change that into a static IP address. For that we need to edit a file in our pi. Now edit the network interfaces. It is located in /etc/network/interfaces. For this in the terminal type, “sudo nano /etc/network/interfaces” The highlighted part, which is iface eth0 inet dhcp should be changed to: iface eth0 inet static
  • 15. STEP 4: Give your Raspberry Pi a static IP address Now put the numbers in the network interface file, numbers will change by the user. address: It is the inet address, you got from ifconfig command. You can give any number starting with 192.168.1.xxx. The xxx can be replaced with any number. It is better you have it between 2 and 100. Choosing a higher number is recommended since when you have a lower number it may result in clash of IP addresses. Two devices might have the same address. That is the reason I gave it a higher number. Netmask: It is the Mask address in the “ifconfig” command. Network: It is the Destination address you got from the “netstat -nr “command. Broadcast: It is the Bcast address you got from the “ifconfig” command. Gateway: It is the gateway address you got from the netstat -nr command. “Sh”
  • 16. STEP 4: Give your Raspberry Pi a static IP address Edting iface file now, press Ctrl+X to save it and press y. After this reboot your pi and check the ifconfig command. If inet address shows your new IP Address its confirmed that the server got a static IP address.
  • 17. STEP 5: Finishing tasks. First, we need to sign up for an account in www.no-ip.com. This service is for free. What Dynamic DNS does is simple. Our ISP (Internet Service Provider) gives us an External IP address, that is random. No-IP.com changes our IP Address into a URL. We also configure this in our Router which will be shown soon. So, whenever our modem gets a new IP, it sends it to No- IP.com by which they connect the new IP Address and our static URL for our Raspberry Pi web server. The URL never changes but the IP does. After account creation, you should activate your account using the e-mail sent by No-IP.com. You can sign in to your account after the activation of the same. You can see your new URL in the submenu Hostnames under Dynamic DNS Menu. You can check your URL by clicking on it. As your Raspberry Pi Web Server is just set up, you can see the It Works! Page.
  • 18. Everything is done. User can access it with just one URL. Accessible to the whole World! All the best with your Server! User can make amazing websites easily using the templates and styling using css available on the internet. As the website has new domain name in the addressbar it will show the website name instead of showing the static ip address of the server. STEP 5: Finishing tasks.