Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikokch/e351ec6717c8fa03667c to your computer and use it in GitHub Desktop.
Save mikokch/e351ec6717c8fa03667c to your computer and use it in GitHub Desktop.

Revisions

  1. miko revised this gist Sep 16, 2016. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,8 @@
    # sudo /etc/init.d/dphys-swapfile start


    sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget
    #sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget
    sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget libssl-dev

    #At this point make sure you check to see that 2.0.4 is still the most recent version of RethinkDB! http://rethinkdb.com
    wget http://download.rethinkdb.com/dist/rethinkdb-latest.tgz
    @@ -27,6 +28,6 @@ cd rethinkdb-*
    ./configure --with-system-malloc --allow-fetch --prefix=/usr --sysconfdir=/etc --localstatedir=/var

    #Export the proper C++ flags for Raspberry Pi 1/2
    #export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" #| time make -j3 ALLOW_WARNINGS=1
    export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" #| time make -j3 ALLOW_WARNINGS=1
    time make -j3 ALLOW_WARNINGS=1
    #sudo make install
    #sudo make install
  2. miko revised this gist Jun 9, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -28,5 +28,5 @@ cd rethinkdb-*

    #Export the proper C++ flags for Raspberry Pi 1/2
    #export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" #| time make -j3 ALLOW_WARNINGS=1
    time make ALLOW_WARNINGS=1
    time make -j3 ALLOW_WARNINGS=1
    #sudo make install
  3. miko revised this gist Jun 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -27,6 +27,6 @@ cd rethinkdb-*
    ./configure --with-system-malloc --allow-fetch --prefix=/usr --sysconfdir=/etc --localstatedir=/var

    #Export the proper C++ flags for Raspberry Pi 1/2
    export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" #| time make -j3 ALLOW_WARNINGS=1
    #export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" #| time make -j3 ALLOW_WARNINGS=1
    time make ALLOW_WARNINGS=1
    #sudo make install
  4. miko revised this gist Jun 8, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -27,6 +27,6 @@ cd rethinkdb-*
    ./configure --with-system-malloc --allow-fetch --prefix=/usr --sysconfdir=/etc --localstatedir=/var

    #Export the proper C++ flags for Raspberry Pi 1/2
    export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" | time make -j3 ALLOW_WARNINGS=1
    #sudo make ALLOW_WARNINGS=1
    export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" #| time make -j3 ALLOW_WARNINGS=1
    time make ALLOW_WARNINGS=1
    #sudo make install
  5. miko revised this gist Jun 8, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -27,6 +27,6 @@ cd rethinkdb-*
    ./configure --with-system-malloc --allow-fetch --prefix=/usr --sysconfdir=/etc --localstatedir=/var

    #Export the proper C++ flags for Raspberry Pi 1/2
    export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" | make -j3 ALLOW_WARNINGS=1
    sudo make ALLOW_WARNINGS=1
    export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" | time make -j3 ALLOW_WARNINGS=1
    #sudo make ALLOW_WARNINGS=1
    #sudo make install
  6. miko revised this gist Jun 8, 2016. 1 changed file with 16 additions and 1 deletion.
    17 changes: 16 additions & 1 deletion download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,21 @@
    #
    #!/bin/bash

    # Change Raspberry SWAP size
    # https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile-size-on-rasbian/
    #
    # sudo nano /etc/dphys-swapfile
    #
    # The default value in Raspbian is:
    # CONF_SWAPSIZE=100
    #
    # We will need to change this to:
    # CONF_SWAPSIZE=1024
    #
    # Then you will need to stop and start the service that manages the swapfile own Rasbian:

    # sudo /etc/init.d/dphys-swapfile stop
    # sudo /etc/init.d/dphys-swapfile start


    sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget

  7. miko revised this gist Jun 8, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    #
    # https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile-size-on-rasbian/
    #

    sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget

    #At this point make sure you check to see that 2.0.4 is still the most recent version of RethinkDB! http://rethinkdb.com
  8. miko revised this gist Jan 8, 2016. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -5,8 +5,9 @@ wget http://download.rethinkdb.com/dist/rethinkdb-latest.tgz
    tar xf rethinkdb-latest.tgz
    rm rethinkdb-latest.tgz
    cd rethinkdb-*
    ./configure --with-system-malloc --allow-fetch
    ./configure --with-system-malloc --allow-fetch --prefix=/usr --sysconfdir=/etc --localstatedir=/var

    #Export the proper C++ flags for Raspberry Pi 1/2
    export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" | make -j3 ALLOW_WARNINGS=1
    sudo make install
    sudo make ALLOW_WARNINGS=1
    #sudo make install
  9. @dalanmiller dalanmiller revised this gist Aug 18, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,7 @@ sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4
    #At this point make sure you check to see that 2.0.4 is still the most recent version of RethinkDB! http://rethinkdb.com
    wget http://download.rethinkdb.com/dist/rethinkdb-latest.tgz
    tar xf rethinkdb-latest.tgz
    rm rethinkdb-latest.tgz
    cd rethinkdb-*
    ./configure --with-system-malloc --allow-fetch

  10. @dalanmiller dalanmiller revised this gist Aug 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -7,5 +7,5 @@ cd rethinkdb-*
    ./configure --with-system-malloc --allow-fetch

    #Export the proper C++ flags for Raspberry Pi 1/2
    export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=cortex-a7 -march=armv7-a -mfloat-abi=hard" | make -j3 ALLOW_WARNINGS=1
    export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=native -march=native -mfloat-abi=hard" | make -j3 ALLOW_WARNINGS=1
    sudo make install
  11. @dalanmiller dalanmiller revised this gist Aug 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -7,5 +7,5 @@ cd rethinkdb-*
    ./configure --with-system-malloc --allow-fetch

    #Export the proper C++ flags for Raspberry Pi 1/2
    export CXXFLAGS="-O1 -mfpu=neon-vfpv4 -mcpu=cortex-a7 -march=armv7-a -mfloat-abi=hard" | make -j3 ALLOW_WARNINGS=1
    export CXXFLAGS="-mfpu=neon-vfpv4 -mcpu=cortex-a7 -march=armv7-a -mfloat-abi=hard" | make -j3 ALLOW_WARNINGS=1
    sudo make install
  12. @dalanmiller dalanmiller revised this gist Aug 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -7,5 +7,5 @@ cd rethinkdb-*
    ./configure --with-system-malloc --allow-fetch

    #Export the proper C++ flags for Raspberry Pi 1/2
    export CXXFLAGS="-O2 -mfpu=neon-vfpv4 -mcpu=cortex-a7 -march=armv7-a -mfloat-abi=hard" | make -j3 ALLOW_WARNINGS=1
    export CXXFLAGS="-O1 -mfpu=neon-vfpv4 -mcpu=cortex-a7 -march=armv7-a -mfloat-abi=hard" | make -j3 ALLOW_WARNINGS=1
    sudo make install
  13. @dalanmiller dalanmiller revised this gist Aug 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4
    #At this point make sure you check to see that 2.0.4 is still the most recent version of RethinkDB! http://rethinkdb.com
    wget http://download.rethinkdb.com/dist/rethinkdb-latest.tgz
    tar xf rethinkdb-latest.tgz
    cd rethinkdb-latest
    cd rethinkdb-*
    ./configure --with-system-malloc --allow-fetch

    #Export the proper C++ flags for Raspberry Pi 1/2
  14. @dalanmiller dalanmiller revised this gist Aug 17, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget

    #At this point make sure you check to see that 2.0.4 is still the most recent version of RethinkDB! http://rethinkdb.com
    wget http://download.rethinkdb.com/dist/rethinkdb-2.0.4.tgz
    tar xf rethinkdb-2.0.4.tgz
    cd rethinkdb-2.0.4
    wget http://download.rethinkdb.com/dist/rethinkdb-latest.tgz
    tar xf rethinkdb-latest.tgz
    cd rethinkdb-latest
    ./configure --with-system-malloc --allow-fetch

    #Export the proper C++ flags for Raspberry Pi 1/2
  15. @dalanmiller dalanmiller revised this gist Aug 4, 2015. No changes.
  16. @dalanmiller dalanmiller revised this gist Aug 4, 2015. 2 changed files with 11 additions and 9 deletions.
    9 changes: 0 additions & 9 deletions download_rethinkdb_for_raspberry_pi.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +0,0 @@
    sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget

    wget http://download.rethinkdb.com/dist/rethinkdb-2.0.4.tgz
    tar xf rethinkdb-2.0.4.tgz

    cd rethinkdb-2.0.4
    ./configure --with-system-malloc --allow-fetch
    make
    sudo make install
    11 changes: 11 additions & 0 deletions download_rethinkdb_for_raspberry_pi_2.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget

    #At this point make sure you check to see that 2.0.4 is still the most recent version of RethinkDB! http://rethinkdb.com
    wget http://download.rethinkdb.com/dist/rethinkdb-2.0.4.tgz
    tar xf rethinkdb-2.0.4.tgz
    cd rethinkdb-2.0.4
    ./configure --with-system-malloc --allow-fetch

    #Export the proper C++ flags for Raspberry Pi 1/2
    export CXXFLAGS="-O2 -mfpu=neon-vfpv4 -mcpu=cortex-a7 -march=armv7-a -mfloat-abi=hard" | make -j3 ALLOW_WARNINGS=1
    sudo make install
  17. @dalanmiller dalanmiller created this gist Aug 4, 2015.
    9 changes: 9 additions & 0 deletions download_rethinkdb_for_raspberry_pi.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    sudo apt-get install g++ protobuf-compiler libprotobuf-dev libboost-dev curl m4 wget

    wget http://download.rethinkdb.com/dist/rethinkdb-2.0.4.tgz
    tar xf rethinkdb-2.0.4.tgz

    cd rethinkdb-2.0.4
    ./configure --with-system-malloc --allow-fetch
    make
    sudo make install