Raspberry Pi 101
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Raspberry Pi 101

on

  • 1,850 views

RaspberryPi Introduction by PeenTar Team, coordinated by Bob Hardian, Ph.D at Indonesia Creative Open Source Software

RaspberryPi Introduction by PeenTar Team, coordinated by Bob Hardian, Ph.D at Indonesia Creative Open Source Software

Statistics

Views

Total Views
1,850
Views on SlideShare
1,819
Embed Views
31

Actions

Likes
2
Downloads
84
Comments
0

2 Embeds 31

https://twitter.com 25
http://appsyemen.com 6

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Raspberry Pi 101 Presentation Transcript

  • 1. RaspberryPi 101Indonesia Creative Open Source SoftwareBalai Kartini - Jakarta
  • 2. Who We Are ?PeenTar Team● Gladhi Guarddin (adin@ui.ac.id)● Abi Rheza (abi.rheza@ui.ac.id)● Jan Peter Alexander (jp@ui.ac.id)● Tonny Adhi S (tonny.adhi@ui.ac.id)● Ramot Stephanus (ramot.stephanus@gmail.com)● Zulfikar Ian (ian.djakman@gmail.com)● Maulidan Yulianto(maulidan.ksl@gmail.com)
  • 3. Join Uswww.peentar.org
  • 4. What We Will Learn Today ?● One Device Endless Possibilities● Raspberry Pi Quick Start Guide● Raspbian Initial Setup● Building File / Media Server WithRaspberry Pi● Building Web Server With Raspberry Pi● Use Your Media Server : Raspbmc● Controlling Your Media Server
  • 5. One Device Endless Possibilities
  • 6. A Quick Start Guide
  • 7. Raspbian Initial Setup
  • 8. Setup Your RepositoryAdjust your sources.list file :sudo nano /etc/apt/sources.listOur Repositorydeb http://kambing.ui.ac.id/raspbian/raspbianwheezy main contrib non-freedeb-src http://kambing.ui.ac.id/raspbian/raspbianwheezy main contrib non-freeWe will use local repository in this workshop
  • 9. Setup Your RepositoryIf needed, the Raspbian public key can be stored into your apt-get keyring using the following command:sudo wget http://archive.raspbian.org/raspbian.public.key -O - | sudo apt-keyadd -Also If needed, you will also need to setup your network. Mostlythe first setup is DHCPsudo nano /etc/network/interfacessudo /sbin/route add default gw $GW_IP
  • 10. Set Your HostnameSet to your likingsudo nano /etc/hosts
  • 11. Building File Server With Raspberry Pi
  • 12. Install the samba softwareUpdate and Upgrade Raspbian:sudo apt-get update | sudo apt-get upgradeInstall samba:sudo apt-get install samba samba-common-binRename your default samba configuration file:sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.old
  • 13. Configure Samba ServerCreate public foldersudo mkdir /home/shares/publicChange The Permission. Warning : Dont Do This onSecure Setupsudo chmod 777 /home/shares/publicCreate new configuration filesudo nano /etc/samba/smb.conf
  • 14. Configure Samba Server[global]create mode = 664workgroup = RASPBERRYPIsecurity = SHAREusershare allow guest = yes
  • 15. Configure Samba Server[public]comment = sharedpath = /home/shares/publicguest ok = yesread only = nopublic = yeswriteable = yes
  • 16. Configure Samba ServerRestart samba to use the new configuration file.sudo /etc/init.d/samba restartDone. Lets test it using our Media Center
  • 17. Adding USB StorageCheck device drive:dmesg | tailYou should see some lines like this:usb 2-6: New USB device found, idVendor=0718, idProduct=0077scsi 30:0:0:0: Direct-Access Imation USB Flash Drive 0.00 PQ: 0 ANSI: 2sd 30:0:0:0: [sdb] 7897088 512-byte hardware sectors (4043 MB)See the [sdb] above, that means this device appeared as /dev/sdb.Mounting Disk:sudo mkdir /home/shares/public/disk1sudo mount /dev/sdxx /home/shares/public/disk1Where sdxx is where your drive is in the file systems device hierarchy. i.e./dev/sdb or /dev/sda1
  • 18. Configuring the Samba client on aWindows PCRight Click on Computer Map Network Drive
  • 19. Configuring the Samba client on aWindows PC
  • 20. Configuring the Samba client on aLinux PCOpen a file manager (e.g. nautilus, thunar) and entersmb://raspberrypi/Or :smb://$SMB_HOST_IP/Or :Just Scan Your Network With Your Media Center
  • 21. Building Web Server With RPi
  • 22. Update and Upgrade Raspbian:sudo apt-get update | sudo apt-get upgradeApache2 :aptitude install apache2MySQL:aptitude install mysql-server mysql-client-- You will be asked to provide a password for the MySQL root user:Installing Apache2, MySql
  • 23. PHP5:aptitude install php5 libapache2-mod-php5Getting MySQL Support In PHP5aptitude install php5-mysqlOptional:aptitude install php5-curl php5-gd php5-idn php-pear php5-imagick php5-imapphp5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-jsonphpMyAdmin:aptitude install phpmyadmin-- You will be asked to provide a Username and Password for phpMyAdminInstalling PHP5 & phpMyAdmin
  • 24. Configure Apache to include phpMyAdminadd the following line in the end of/etc/apache2/apache2.conf# Include phpMyAdminInclude /etc/phpmyadmin/apache.confAccess phpMyAdmin under http://localhost/phpmyadmin/
  • 25. Lets Deploy ItRaspberry Pi Media Center
  • 26. Get And Deploy ItRaspbc Disk Image :http://tinyurl.com/raspbmcWe Will Use Our Local RepositoryDeploy It :sudo dd if=raspbmc-final.img of=/dev/sdX bs=256kBoot and Wait For Initial Setup
  • 27. Control Your Media CenterXBMC Remote
  • 28. Referenceshttp://elinux.org/RPi_Hubhttp://www.raspberrypi.org/http://www.raspberrypi-spy.co.uk/And Dont Forget To Join Our Project Page Athttp://peentar.org