понеделник, 28 март 2016 г.

Run Raspberry Pi 2 (Model B v1.1 2014) with Raspbian OS

Run Raspberry Pi 2 (Model B v1.1 2014) with Raspbian OS

Made by Mac OS X 10.10

Need tools:
1. Raspberry Pi.
2. MicroSD Card (minimum 8GB, recommend 16GB) with adaptor to SD card factor.
3. Power supply usb cable or mobile cell phone usb adapor with 5V.

Download torrent (current version is 1.9.0, 2016-03-18) Noobs from:
https://www.raspberrypi.org/downloads/noobs/

https://downloads.raspberrypi.org/NOOBS_latest.torrent

Download format tool for sdcard:
https://www.sdcard.org/downloads/formatter_4/eula_mac/

SDFormatter:
a) Insert sdcard.
b) Option: Logical Address Adjustment - NO.
c) Choose radio button on "Overwrite Format".
d) Write any name.
e) Press button Format.

Extract downloaded "NOOBS_v1_9_0.zip" and copy all contains on formatted sdcard.

Connect LAN cable with Internet in Raspberry Pi ethernet port.
Put sdcard in Raspberry Pi and plug usb power.
Choose to install OS Raspbian.

When the OS is installed you have Rasperry Pi with Debian. You can install software on your debian with next commands:

How to install applications:
Root access
$ sudo su

Make update all current applications

# sudo apt-get update

Make upgrade all current applications
# sudo apt-get upgrade

Install Gparted storage partition graphic tool
# sudo apt-get install gparted

Install Vim command line editor
# sudo apt-get install vim

Install tools for development gcc
# sudo apt-get install build-essential

Install Atmel AVR development libraries and tools
# sudo apt-get install gcc-avr avrdude

Install Gedit gnome graphic editor
# sudo apt-get install gedit

Install Git source control version system
# sudo apt-get install git-all

Install Eclipse integrated development tool
# sudo apt-get install eclipse

Install Geany development editor tool
# sudo apt-get install geany

Install Qt integrated graphical development tool
# sudo apt-get install qt-sdk

Install Java Development
# sudo apt-get install default-jdk

Install PDF Viewer
# sudo apt-get install evince

Install VLC Video player
# sudo apt-get install vlc

Install Totem Video player and start it
# sudo apt-get install totem
$ totem

Install Xine Video player and configure it
# sudo apt-get install xine-ui
or
# sudo aptitude install gxine
$ xine
configure Xine: right mouse click: Settings -> Setup
menu gui tab: Configuration experience level: Advanced
menu subtitles tab: encoding of the subtitles: cp1251
Apply
OK
$ gxine
configure GXine: File -> Configure -> Preferences...
menu gui tab: experience_level: Beginner -> Advanced
menu subtitles tab: separate tab: src_encoding: cp1251
Save
Close

Install Clementine Audio player
# sudo apt-get install clementine

Install other PDF Viewer
# sudo apt-get install gv

How to enable Audio Analog or HDMI:

# sudo su
# raspi-config
select Advanced Options -> Audio:
1 Force 3.5mm ('headphone') jack
2 Force HDMI
<Enter>
<Tab><Tab>
Finish
<Enter>

How to remove/uninstall applications:
# sudo apt-get remove gv

How to restart/reboot system:
# sudo reboot

How to shutdown/turn off system:
# sudo halt


How to setup IDE QT to graphic development:
After install Qt IDE, compiling tools and git
# sudo apt-get install build-essential qt-sdk git-core

If need execute next line:
# sudo apt-get install emdebian-archive-keyring

# gcc -v
You can view where is located arm-linux-gnueabihf compiler and what is current version of compiler:

==============================================
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian
4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.9 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --disable-libitm --disable-libquadmath
--enable-plugin --with-system-zlib --disable-browser-plugin
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre
--enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf
--with-arch-directory=arm
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc
--enable-multiarch --disable-sjlj-exceptions --with-arch=armv6
--with-fpu=vfp --with-float=hard --enable-checking=release
--build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.2 (Raspbian 4.9.2-10)
==============================================


Path to compiler is: /usr/bin/arm-linux-gnueabihf-gcc

Navigate to: Menu | Programming | Qt Creator
Navigate to: Tools | Options | Compilers | Add | GCC
   Name: arm_bcm2836_rpicompiler
   Compiler path: /usr/bin/arm-linux-gnueabihf-gcc

Press buttons: Apply | OK and go to development





Няма коментари:

Публикуване на коментар