Announcement

Collapse
No announcement yet.

Raspberry PI2 Install for Dummies

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pete
    replied
    Good news John!

    I will post your stuff in the DIY section of the Homeseer Forum as it will help others doing like you.

    Yeah here thinking I did the configuration (raspi-config?)only once.

    Next steps is the audio and Homeseer 3 installation.

    For audio do:

    1 - sudo apt-get update
    2 - sudo apt-get upgrade
    3 - sudo apt-get install alsa-utils
    4 - sudo nano /etc/modules
    5 - to have line: snd_bcm2835
    6 - sudo apt-get install mplayer
    7 - sudo nano /etc/mplayer/mplayer.conf
    8 - to add line: nolirc=yes

    Pico Text to Speech

    sudo apt-get install libttspico-utils

    Test it with a speaker connected:

    pico2wave -w lookdave.wav "Look Dave, I can see you're really upset about this." && aplay lookdave.wav



    Homeseer by default sits in the /usr/local/HomeSeer directory.

    For Zee S2 use the following for the entire Homeseer 3 Zee-2 directory


    For Homeseer 3 for Linux use the following for the entire Homeseer 3 directory



    You will also need to install Real VNC on your computer. There is a free option that will be shown at the end of registration.

    You don't really need Real VNC cuz you don't really ever need to get to a GUI on the RPi2. That said too running VNC server as a service does eat a bit of the CPU.

    For updating the RPi2 you can either SSH and use apt-get install update or just log in to the Webmin interface. The info page tells you if you need to update and provides a link to the updates.

    Leave a comment:


  • JohnD
    replied
    Pete,

    I started over and went through all of your instructions again. Everything seems to be working right. I am making a backup image every few steps so I can retry if something goes wrong.

    root@watchman1:~# sudo mono -V
    Mono JIT compiler version 3.12.1 (tarball Fri Mar 6 23:28:08 UTC 2015)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.comhttps://www.youtube.com/watch?v=PFIL...ature=youtu.be

    root@raspberrypi:/# sudo apt-get install tightvncserver
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
    xfonts-base
    Suggested packages:
    tightvnc-java
    The following NEW packages will be installed:
    tightvncserver xfonts-base
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 6,736 kB of archives.
    After this operation, 9,895 kB of additional disk space will be used.
    Do you want to continue? [Y/n]

    You will also need to install Real VNC on your computer. There is a free option that will be shown at the end of registration.

    Leave a comment:


  • Pete
    replied
    Does this look right?

    yes

    SSH over the RPi2 remotely via root or sudoer.

    via sudoer type:

    1 - sudo apt-get install update
    1 - sudo apt-get mono-complete
    2 - sudo apt-get install mono-vbnc
    3 - sudo apt-get install chromium-bsu

    It will take a bit to install.

    When finished type

    sudo mono -V

    and print out what you see here. Next is sound and speech stuff.

    Leave a comment:


  • JohnD
    replied
    Pete,

    I think I am back on track. Does this look right?

    root@watchman1:~# cat /etc/apt/sources.list
    deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
    # Uncomment line below then 'apt-get update' to enable 'apt-get source'
    #deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
    deb hxxp://download.mono-project.com/repo/debian wheezy/snapshots/3.12.0 main
    deb hxxp://download.webmin.com/download/repository sarge contrib
    root@watchman1:~#


    Thanks

    John

    Leave a comment:


  • Pete
    replied
    Not an issue John.

    Yeah done with the car stuff until I get my next parts order.

    Leave a comment:


  • JohnD
    replied
    Pete,

    Thanks for your help today.
    I have come to the conclusion that there is some technical issue on my end involving my keyboard. Many commands I type will not work, but if I copy past the same command from your instructions, it works perfectly.

    Let me work this out and if you are willing, we can pick this up on another day.

    I hope your car repair project goes well.

    John

    Leave a comment:


  • Pete
    replied
    I did have a Jeep in the 1980's. Put a lift kit on it and it had oversized tires. Never flipped it but had a friend do that with his Toyota 4 wheeler (the jeep looking one) roughing it a bit.

    Are you logging in SSH remotely as root or are you using sudo su?

    Leave the console alone for a bit and do everything from your laptop or another computer in the house; it is much easier.

    You cannot make any changes unless you are root or sudoer.

    Manually type in ssh as root
    1 - cd /etc
    2 - cd apt
    3 - ls
    4 - nano sources.list

    root@ICS-006-Basement:/home/pete# ssh root@192.168.244.169
    root@192.168.244.169's password:

    Linux ICS-RPi2-Zee 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l
    Last login: Thu Oct 29 11:45:59 2015 from 192.168.244.230
    Uptime: 8 days 46 minutes
    CPU Speed: 900 Mhz - Load Average: 1min 0% 5min 1% 15min 1% - Cores: 4
    Free Memory: 769 Mb
    Free Disk Space rootfs:
    SD Card: Written 6463M Read 0G
    Network Traffic eth0: Sent 69.6 MiB Received 267.3 MiB

    root@ICS-RPi2-Zee:~# cd /etc
    root@ICS-RPi2-Zee:/etc# cd apt

    root@ICS-RPi2-Zee:/etc/apt# ls
    apt.conf.d sources.list trustdb.gpg trusted.gpg~
    preferences.d sources.list.d trusted.gpg trusted.gpg.d
    root@ICS-RPi2-Zee:/etc/apt#

    root@ICS-RPi2-Zee:/etc/apt# nano sources.list
    Last edited by Pete; October 29, 2015, 01:54 PM.

    Leave a comment:


  • JohnD
    replied
    still cant save changes [ Error writing /etc/apt/sources.list: Permission denied ]

    Leave a comment:


  • JohnD
    replied
    I booted to GUI to set the keyboard to US and got the following message

    "your raspian system has been upgraded to the latest version.

    To ensure compatibility with the new version, some configuration files have been overwritten-if you had customized your system, some of your changes may have been lost.

    Your original configuration fileshave been backed up and put in the directory/home/pi/oldconffiles

    this directory is empty bot in SSJ and GUI

    GUI boots to Pi without password

    Leave a comment:


  • Pete
    replied
    Radiator is to an E46 automatic and is similiar to an M3 engine. Done with it today; just left the car up on jacks for the time being.

    The car is more dusty than it is anything else lately cuz it's been sitting now for a bit.

    The manual transmission engine is easier to play with.

    Last winter's project was to replace all of the drive belts. (just cuz they were old). That said shattered the plastic water pump pulley so ended up putting in a performance aluminium water pump pulley on the car.

    Yeah change the keyboard to a US keyboard otherwise you will have some issues typing stuff.

    Here are the steps:

    1 - sudo raspi-config
    2 - Choose Internationalization menu
    3 - Choose keyboard setup menu.
    4 - If your exact keyboard is not on the list then choose one of the generic 101, 102 or 104 keyboards.
    The following steps are Important! If need US then you must choose US. Don't leave it set to UK.......
    5 - The default Keyboard Layout is [ English (UK) ]
    You may need to scroll down and select [Other] to get back to the country of origin menu
    6 - From country of origin menu select [English (US) ]
    7 - Then from Keyboard layout: menu, scroll to top of list and select - [ English (US) ].
    Do not choose anything else unless you know exactly what you are doing!
    8 - Complete the other menus then reboot.

    OK so have you edited the sources.list file?

    Are you ready to continue?

    When you are finished you will be able to do this stuff blindfolded; really you should do another base RPi2 microSD card to keep as a backup or as a spare.

    Leave a comment:


  • JohnD
    replied
    disregard the previous post

    If I type nano /ect/apt/sources.list myself I get a file not found

    If I copy past nano /etc/apt/sources.list from your message it works


    [ Error writing /etc/apt/sources.list: Permission denied

    I just thought of something, my pi may be set to UK keyboard.

    Leave a comment:


  • JohnD
    replied
    Disregard this post, skip to the next one. Some kind of typo

    [ Error writing /ect/apt/sources.list: No such file or directory ]

    directory is empty with no text

    logged in as root

    That radiator looks like something a jeep or subaru would have. that does not look easy to work on.
    Last edited by JohnD; October 29, 2015, 12:43 PM.

    Leave a comment:


  • Pete
    replied
    OK now do this:

    1 - nano /etc/apt/sources.list
    2 - add the two lines from the picture above and save your edited sources.list file.

    Note change the xx to tt.

    deb hxxp://download.mono-project.com/repo/debian wheezy/snapshots/3.12.0 main
    deb hxxp://download.webmin.com/download/repository sarge contrib




    3 - do a apt-get update after this piece.

    Tell me when you are done with this piece.
    Last edited by Pete; October 29, 2015, 12:04 PM.

    Leave a comment:


  • JohnD
    replied
    I may use sound

    I can log into webmin Pi, root and homeseer

    root@raspberrypi:~# cat /etc/apt/sources.list
    deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
    # Uncomment line below then 'apt-get update' to enable 'apt-get source'
    #deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
    root@raspberrypi:~#

    Leave a comment:


  • Pete
    replied
    Yeah its looking like winter here in the midwest; cold, windy and rainy today. Garage is warm. Radiator is metal, just everything that connects to it is plastic. The car is now 14 years old and the plastic stuff is just getting old. It works fine though; just wanting new pieces.

    OK now update the 15 packages in Webmin.

    I am guessing you tested your login to Webmin with Pi, Homeseer and root eh?

    And it all worked fine eh?

    Are you going to be using the audio output of the RPi2 for anything relating to Homeseer?

    Next step after update
    1 - login via ssh root.
    2 - do a cat /etc/apt/sources.list and print here what you see.

    BTW here went to a new 16Gb fast micro SD card. The 8Gb one you have should be fine. Note that I had issues with the older slower microSD cards.
    Tried initially Samsung then settled on SanDisk. The new SanDisk microSD cards are really fast. (well so are the Samsung microsd cards).

    I have replaced all seen in the picture now (plastic stuff). The plastic ends of the radiator hoses snap in to place then there is a clip that holds them. You have to buy the hoses with the ends on them. The radiator is plug n play and lifts out of the car with just few clips. Radiator looks new so didn't touch that part.

    Next is the fill and purging of air because if it over heats it will warp the aluminium head.

    I have to wait though as I busted the plastic sleeve for the drain plug in half, removed it and ordered a new one. Should be a day or so to get it.

    Most of the work related to removing and replacing the plastic expansion tank. PITA.
    Attached Files
    Last edited by Pete; October 29, 2015, 11:11 AM.

    Leave a comment:

Working...
X