Tags

    Raspberry Pi installation notes-11.1.14

    Comments

    /groups/advancedcomputerscience/search/index.rss?tag=hotlist/groups/advancedcomputerscience/search/?tag=hotWhat’s HotHotListHot!?tag=hot1/groups/advancedcomputerscience/sidebar/HotListairport extreme setup pagesadminadmin2014-09-22 19:45:24+00:002014-09-22 19:45:24updated4Added tag - hotadminadmin2014-09-22 19:45:23+00:002014-09-22 19:45:23addTag3adminadmin2014-09-22 19:45:09+00:002014-09-22 19:45:09updated2First createdadminadmin2014-09-22 19:38:45+00:002014-09-22 19:38:45created1wiki2014-09-22T19:45:24+00:00groups/advancedcomputerscience/wiki/0554cFalseairport setup pages/groups/advancedcomputerscience/wiki/0554c/airport_setup_pages.htmladmin4 updatesairport setup pages Basic Airport extreme setup pages, using utility 6.3.2 Basic config screen, notice MAC addresses of clients: [Screen Shot 2014-09-...Falseadmin2014-09-22T19:45:24+00:00hot/groups/advancedcomputerscience/search/index.rss?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcomelist/groups/advancedcomputerscience/search/?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcomeRecent ChangesRecentChangesListUpdates?sort=modifiedDate&kind=all&sortDirection=reverse&excludePages=wiki/welcome0/groups/advancedcomputerscience/sidebar/RecentChangesListmodifiedDateallRecent ChangesRecentChangesListUpdateswiki/welcomeNo recent changes.reverse5search
    post install:
    sudo apt-get update
    ifconfig to get IP address
    test ssh: ssh pi@x.y.z.a, pass raspberry

    Network setup
    cd /etc/network
    sudo nano interfaces
    change dhcp to static
    add:
    address 10.14.88.x
    netmask 255.255.0.0
    gateway 10.14.0.1

    Make display stay on:
    cd /etc/kbd
    sudo nano config
    BLANK_TIME=0
    POWERDOWN_TIME=0

    If restart needed:
    sudo shutdown -r now

    sudo apt-get update
    sudo apt-get install apache2 -y
    sudo apt-get install sqlite3
    sudo apt-get install mc

    Enabling PiFace board:

    edit this file:

    /etc/modprobe.d/raspi-blacklist.conf

    change line to:
    # blacklist spi-bcm2708

    create file called installpf.txt in
    /home/pi (this is your home directory)

    sudo apt-get install -y python-dev python-gtk2-dev git
    pushd ~/
    git clone https://github.com/thomasmacpherson/piface.git
    pushd piface/python
    sudo python setup.py install
    popd
    sudo piface/scripts/spidev-setup
    popd

    the file is here:
    Download file "installpf.txt"

    Then type
    sudo apt-get update
    cd ~
    bash installpf.txt

    sudo shutdown -r now
    then go to
    python /usr/share/doc/python3-pifacedigitalio/examples/blink.py

    Installing wi-fi:

    sudo apt-get update
    sudo apt-get install wicd-curses

    then once installed,
    sudo wicd-curses

    P is for preferences
    If wlan0 is at the top, then hit F10 to exit
    R means scan

    cd to /etc/network
    edit interfaces:

    auto wlan0
    allow-hotplug wlan0
    iface wlan0 inet static
    address 192.168.1.51
    netmask 255.255.255.0
    gateway 192.168.1.1
    wpa-passphrase WiFiPASSWORD
    wpa-ssid WiFiNAME

    comment out these lines:
    #wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
    #iface default inet dhcp

    Copying files from rpi box:

    scp pi@192.168.3.212:/var/www/index.html /Users/admin/Desktop


    copy files TO raspberry pi:


    scp /Users/admin/Desktop/installpf2.txt pi@192.168.3.212:/home/pi/


    Install appletalk:

    sudo apt-get netatalk

    After netatalk is enabled, create a directory in /home/pi:

    mkdir /home/pi/www

    chmod 777 www

    then go to

    /etc/apache2/sites-enabled/

    look for

    000-default

    sudo nano 000-default

    replace

    /var/www/

    with

    /home/pi/www/

    do this twice.

    Now, we can upload content to the server from afp

    to enable directory listing, alter the name of index.html to index2.html

    -------

    Optional: VNC installation

    sudo apt-get install tightvncserver

    run: tightvncserver

    create control and view passwords (8)

    start VNC server from terminal:

    vncserver :0 -geometry 1024x768 -depth 24

    Client: can be iTeleport or free installer at tightvnc.com

    Download file "tvnjviewer-2.zip"

    n.b. port may be 5900, 5901, 5902, scan to determine




    -------

    PiFace installation:

    in text editor, create file install.txt:

    sudo apt-get install -y python-dev python-gtk2-dev git
    pushd ~/
    git clone https://github.com/thomasmacpherson/piface.git
    pushd piface/python
    sudo python setup.py install
    popd
    sudo piface/scripts/spidev-setup
    popd

    sudo apt-get update

    upload the file install.txt to your home directory /home/pi/

    run bash install.txt

    sudo shutdown -r now

    test with this script:

    python /usr/share/doc/python3-pifacedigitalio/examples/blink.py

    python3 /usr/share/doc/python3-pifacedigitalio/examples/simplewebcontrol.py
    Go to IP address:8000 for web interface

    http://piface.github.io/pifacedigitalio/simplewebcontrol.html

    http://piface.github.io/pifacedigitalio/example.html

    PIFace Control and Display 2 installation (CAD)

    To use the PiFace CAD you need to install the software that runs it.

    Install the CAD software with the command
    sudo apt-get install python3-pifacecad

    This will ask you a couple of questions, to proceed enter Y

    To use PiFace CAD, you should reboot your Pi
    sudo reboot

    Once you have installed the PiFace CAD software you can display our system info example using the buttons and LCD screen on your PiFace CAD

    First move into the PiFace CAD examples directory
    cd /usr/share/doc/python3-pifacecad/examples

    Now run sysinfo using the following command
    python3 sysinfo.py

    Something like the following should appear on your PiFace CAD screen

    The top line is displaying your local I.P. adrress. The left side of the bottom line is displaying the RaspberryPi's processor's temperature, and the right side displays the current memory usage. press Ctrl C to exit the program.

    To install the media player that piface radio uses, enter the command:
    sudo apt-get install mplayer
    enter y when prompted.

    Unzip the piface radio example, with the command:
    sudo gunzip /usr/share/doc/python3-pifacecad/examples/radio.py.gz

    Run the PiFace radio with:
    python3 /usr/share/doc/python3-pifacecad/examples/radio.py


    Fun links:

    Supercomputer with Pi: (thanks to George Donev)

    Next steps:
    • tightvncserver
    • PiFace sensors IP address:8000
    • PiFace CAD
    • Pwnpi 3.0
    Next Options: cybersecurity or scratch/python/idle programming