Your SlideShare is downloading. ×

Raspberry Pi 101


Published on

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

Published in: Technology
  • Be the first to comment

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

No notes for slide


  • 1. RaspberryPi 101Indonesia Creative Open Source SoftwareBalai Kartini - Jakarta
  • 2. Who We Are ?PeenTar Team● Gladhi Guarddin (● Abi Rheza (● Jan Peter Alexander (● Tonny Adhi S (● Ramot Stephanus (● Zulfikar Ian (● Maulidan Yulianto(
  • 3. Join
  • 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 main contrib non-freedeb-src 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 -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 : 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. References Dont Forget To Join Our Project Page At