Announcement

Collapse
No announcement yet.

Raspberry PI2 Install for Dummies

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

  • rmasonjr
    replied
    Originally posted by bpm32 View Post
    I'm redoing my RPI2 setup from scratch and have found this thread to be immensely helpful. Thank you so much for creating this great resource! I know I'll have a much cleaner setup now thanks to this thread.

    One thing I'm missing is getting HS3 to load automatically when the Pi boots. What's the recommended way of doing this?

    Any guidance would be much appreciated.

    Thanks!

    Brian




    Sent from my iPad using Tapatalk

    You might add a section on disabling the power-managment features of the distro. I believe it is called APCI(?) or something to that effect. Basically, you want the Pi to run as a server with no hibernate/suspend functionality.

    Leave a comment:


  • bpm32
    replied
    I'm redoing my RPI2 setup from scratch and have found this thread to be immensely helpful. Thank you so much for creating this great resource! I know I'll have a much cleaner setup now thanks to this thread.

    One thing I'm missing is getting HS3 to load automatically when the Pi boots. What's the recommended way of doing this?

    Any guidance would be much appreciated.

    Thanks!

    Brian




    Sent from my iPad using Tapatalk

    Leave a comment:


  • cesarvog
    replied
    Glad to help. Hope you enjoy your new system.

    Leave a comment:


  • Pete
    replied
    Good news John!

    Leave a comment:


  • JohnD
    replied
    Thanks ya'll

    It seems to work perfectly. I will re-write this so you can post it

    John

    Leave a comment:


  • Pete
    replied
    Very nice John.

    Move these steps up to after #14

    18. wget hxxp://prdownloads.sourceforge.net/webadmin/webmin_1.770_all.deb

    19. sudo dpkg --install webmin_1.770_all.deb

    20. sudo apt-get -f install ‘To fix some unmet dependancies’


    To ==>

    and change them to: (xx to tt) - this part is only for webmin - install it before MONO
    step #16 is important and needs to be done before webmin is installed

    15 - wget hxxp://prdownloads.sourceforge.net/webadmin/webmin_1.770_all.deb

    16 - apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

    17 - dpkg --install webmin_1.770_all.deb

    Remove:

    30. sudo apt-get install libttspico-utils ‘this doesn’t work omit’

    After Cesar's steps above I would recommend shutting down Homeseer via the GUI and doing the following depending on the network connection.

    Before moving on.

    Are you planning on using a regular network cable connection or wireless?

    It is understood that you can utilize wireless for your RPi2 Homeseer automation service. Personally I wouldn't put an automation server on a wireless network. That is me though.

    What I did and you have a choice to do this or not.

    1 - utilize a static IP (pick a suitable IP address out of the range of your DHCP scope).
    2 - gave the RPi2 a name

    #1 and #2 should probably be at the top of the list. You can also configure a DHCP assigned IP via MAC address. It is easier to manage your RPi2 Homeseer device with a static IP configuration.

    3 - configure Homeseer to auto start with the reboot of the RPi2 ( couple of ways to do this).
    Last edited by Pete; November 13, 2015, 10:59 AM.

    Leave a comment:


  • cesarvog
    replied
    Looks good, John.

    Since in step 33 you moved to the desired folder location for the download and uncompress of the HS3 for Linux tar.gz file, step 36 is indeed unnecessary.

    Once you successfully run the uncompress command in step 35. You should end up with a folder named 'HomeSeer' being created by the uncompress command (so you end up with '/usr/local/HomeSeer').

    The next step is to change the current folder to it, by issuing the following command:

    cd /usr/local/HomeSeer

    And, finally, you can run HS3 for Linux, by issuing the following:

    ./go

    You should then see a lot of startup messages display at your terminal screen.

    Then, you can open a browser from any computer in your network, pointing to http://find.homeseer.com

    Once the page displays, press the 'Search...' button on it, which should present you with a list of your current running instances of HS3 for Linux (there should be only one line).

    From then on, use the browser to administer HS3 for Linux, by clicking on the link under the SYSTEM column. At this point I would recommend you do not use the Maintenance link.

    Good job!
    Cesar

    Leave a comment:


  • JohnD
    replied
    I think I have it correct now. Webmin works everything seems to have installed correctly. What is the next step? This should be a good rough draft for the DIY Mac instructions. I suspect that the order of operations could be improved and there may be duplication and redundancies that need to be addressed.

    1. Format SD card using Apple Pi Baker Prep for NOOBS button do not use a large card. 4 or 8 gig at most.
    2. Load rmasonjr disk image using Apple Pi Baker on Mac using the Restore Backup button, Pi Baker will reliably unzip the compressed image and install it correctly on the SD card. Do not try to unzip the file by other means. eject card, then quit Pi Baker.

    3. ssh to RPi2 as homeseer@RPi2 ~ $

    4. sudo raspi-config expand filesystem and change keyboard to your local. Use generic keyboard unless you know exactly what keyboard you use and never use a different one.

    5. exit with reboot from raspi-config

    6. sudo apt-get update answer y to any y/n questions
    7. sudo apt-get upgrade answer y to any y/n questions

    8. sudo reboot

    9. sudo apt-get update
    10. sudo apt-get upgrade

    11. reboot then ssh back in as homeseer

    12. sudo shutdown -h now wait for a few moments, power down Pi and remove card

    13. backup disk image, name as version 1.0 using Apple Pi Baker Create Backup button, properly eject SD card, reinsert card into Pi and power up. Quit Pi Baker after each use, it works more reliably this way.

    14. ssh back into homeseer

    stop mono from upgrading to the latest but incompatible version by inserting these two lines in the folder /etc/apt/sources.list by executing this command;

    15. sudo nano /etc/apt/sources.list copy paste the two lines below control o return to save control x to exit



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

    16. sudo apt-get update

    17. sudo apt-get install mono-complete

    18. wget http://prdownloads.sourceforge.net/w..._1.770_all.deb

    19. sudo dpkg --install webmin_1.770_all.deb

    20. sudo apt-get -f install ‘To fix some unmet dependancies’

    21. sudo apt-get install mono-vbnc

    22. sudo apt-get install chromium-bsu

    23. sudo apt-get update

    24. sudo apt-get upgrade

    25. Reboot

    26. sudo apt-get install alsa-utils

    27. sudo nano /etc/modules needs to have line: snd_bcm2835

    28. sudo apt-get install mplayer

    29. sudo nano /etc/mplayer/mplayer.conf to add line: nolirc=yes

    30. sudo apt-get install libttspico-utils ‘this doesn’t work omit’

    31. sudo apt-get install flite

    32. sudo su

    33. cd /usr/local

    34. wget http://homeseer.com/updates3/hs3_linux_3_0_0_208.tar.gz ‘changed per Cesar’


    35. tar xavf hs3_linux_3_0_0_208.tar.gz ‘changed per Cesar’

    36. mv /home/homeseer/HomeSeer /usr/local “did not use per Pete’


    what is the next step? how do I start Homeseer?

    Thanks

    John
    Last edited by JohnD; November 12, 2015, 10:41 PM.

    Leave a comment:


  • Pete
    replied
    @John,

    You are doing fine. Baby steps. You are almost there. Look at step #16. This part cuts out the mv piece.

    OR

    14. ssh to the RPi2 as homeseer
    15. sudo su
    16. cd /usr/local
    17. wget http://homeseer.com/updates3/hslinux...0_0_208.tar.gz
    18. tar xavf hslinux_hs3_3_0_0_208.tar.gz

    The only purpose to Webmin is to provide a management/monitoring web based GUI for your RPi2 such that you do not have to SSH to the RPi2.

    Let's title the DIY to

    Raspberry PI2 base OS and Homeseer Install using a MAC

    Eh John?

    Leave a comment:


  • cesarvog
    replied
    My two cents:

    When you issue command 14, you end up logged on as user homeseer. At this moment, your current folder will be /home/homeseer

    When you issue the command in step 15, the prompt will change from a $ to home/homeseer#. The # is an indication that you now have superuser power and do not need to use the su prefix at each command. You are at the same place on the tree structure: home/homeseer

    There is no need for command 16 at all.

    When you issue command 17, the compressed file will be downloaded to the current folder, resulting in a tar.gz file located at /home/homeseer. Please note that the correct file to download at this moment is 'hs3_linux_3_0_0_208.tar.gz" and not the one you mentioned above. The one you mention is the UPDATE file. The one I refer to is the full HS3 version 208 file.

    When you issue command 18, you end up with a folder named HomeSeer under your current location. So now you've got /home/homeseer/HomeSeer. The last one is the folder you need to move to /usr/local, which is the purpose of command number 19.

    Please note there is a minor but fundamental error in your command 19 above: As mentioned before, the folder name created by the tar command is HomeSeer. So the correct command number 19, would be 'mv /home/homeseer/HomeSeer /usr/local'.

    Leave a comment:


  • JohnD
    replied
    http://homeseer.com/updates3/hslinux...0_0_208.tar.gz
    18. tar xavf hslinux_hs3_3_0_0_208.tar.gz

    19. sudo mv Homeseer /usr/local

    Leave a comment:


  • centerisland
    replied
    I'm considering setting up a RPi2, but I would want to run Win10 IoT so I could move my configuration over and use Mr Happy's CC plug-in.

    Are there any significant advantages to Linux (and the other version of HS3) that I'd be giving up?

    Leave a comment:


  • Pete
    replied
    Apologies John.

    I am totally lost now here with your endeavour.

    Pete, when I run updates on webmin logged in as root or homeseer, I get an error message on each item in the update list;
    There are problems and -y was used without --force-yes
    Any Idea what I did wrong?


    I have never seen this. The only errors I have every seen is relating to an issue with DNS. Test DNS by just SSHing and pinging google. IE: ping www.google.com

    Remove webmin and reinstall it using sudo (sudo everything - don't skip this part). Easier if you do a sudo su once.

    Make sure that homeseer user is a sudoer.

    root@RPi2:/# sudo mono -v

    only works with upppercase V

    I have untarred files on Wintel way long time ago. Today only untar the files via SSH command line on the RPi2. I would recommend that you only untar the files while in the RPi2 SSH session.

    From the above /usr/bin/ stuff looks that you untarred your Homeseer files to /usr/bin and the untar didn't create a directory.

    Note above one file is just an update and the other is the whole Homeseer installation. You only utilize the update file within the HomeSeer directory and the install file outside if that makes sense.

    1 - cd /usr/local
    2 - wget homeseer file
    3 - untar homeseer file

    This will create a HomeSeer directory that looks like this /usr/local/HomeSeer

    To update Homeseer (you do not need to do this anymore as it is included in the GUI)

    1 - cd /usr/local/HomeSeer
    2 - wget homeseerupdatefile
    3 - untar homeseerupdatefile.
    Last edited by Pete; November 12, 2015, 08:57 AM.

    Leave a comment:


  • JohnD
    replied
    When I search for HomeSeer using locate, I get the following, none of which seem to be correct. I searched using both root and homeseer.

    homeseer@RPi2 / $ locate HomeSeer
    /usr/bin/HomeSeerAPI.dll
    /usr/bin/bin/HomeSeerUtil.dll
    /usr/bin/html/images/HomeSeer
    /usr/bin/html/images/HomeSeer/classic
    /usr/bin/html/images/HomeSeer/contemporary
    /usr/bin/html/images/HomeSeer/status
    /usr/bin/html/images/HomeSeer/ui


    One of the errors I suspect I am making is using the wrong command prompt condition. I notice that after many operations, the command prompt has been changed to a different directory. Is there a default condition that I should return to such as homeseer@RPi2 / $ unless otherwise instructed?

    When should I use root, when should I use homeseer?

    Thanks

    John
    Last edited by JohnD; November 12, 2015, 08:45 AM.

    Leave a comment:


  • JohnD
    replied
    Originally posted by Pete View Post
    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.
    when I finished this set of instructions, I got a different result after sudo mono -v than I did on the previous attempt that you verified.

    root@RPi2:/# sudo mono -v
    Usage is: mono [options] program [program-options]

    Development:
    --aot[=<options>] Compiles the assembly to native code
    --debug[=<options>] Enable debugging support, use --help-debug for details
    --debugger-agent=options Enable the debugger agent
    --profile[=profiler] Runs in profiling mode with the specified profiler module
    --trace[=EXPR] Enable tracing, use --help-trace for details
    --jitmap Output a jit method map to /tmp/perf-PID.map
    --help-devel Shows more options available to developers

    Runtime:
    --config FILE Loads FILE as the Mono config
    --verbose, -v Increases the verbosity level
    --help, -h Show usage information
    --version, -V Show version information
    --runtime=VERSION Use the VERSION runtime, instead of autodetecting
    --optimize=OPT Turns on or off a specific optimization
    Use --list-opt to get a list of optimizations
    --security[=mode] Turns on the unsupported security manager (off by default)
    mode is one of cas, core-clr, verifiable or validil
    --attach=OPTIONS Pass OPTIONS to the attach agent in the runtime.
    Currently the only supported option is 'disable'.
    --llvm, --nollvm Controls whenever the runtime uses LLVM to compile code.
    --gc=[sgen,boehm] Select SGen or Boehm GC (runs mono or mono-sgen)
    root@RPi2:/# reboot

    Broadcast message from root@RPi2 (pts/0) (Wed Nov 11 21:52:12 2015):

    The system is going down for reboot NOW!
    root@RPi2:/# Connection to 192.168.1.74 closed by remote host.
    Connection to 192.168.1.74 closed.
    Johns-Mac-Pro:~ jl_photo$ ssh 192.168.1.74 -l root
    root@192.168.1.74's password:
    Linux RPi2 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015 armv7l

    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Sat Jan 31 15:23:35 2015

    Leave a comment:

Working...
X