Skip to content

Instantly share code, notes, and snippets.

@jetsonhacks
Last active August 31, 2019 04:42
Show Gist options
  • Select an option

  • Save jetsonhacks/ad01566922a5c2648a10 to your computer and use it in GitHub Desktop.

Select an option

Save jetsonhacks/ad01566922a5c2648a10 to your computer and use it in GitHub Desktop.

Revisions

  1. jetsonhacks revised this gist May 21, 2015. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions installiTorch.sh
    Original file line number Diff line number Diff line change
    @@ -14,12 +14,12 @@ make
    sudo make install
    cd ..

    sudo apt-get install python-dev
    sudo apt-get install python-pip
    sudo apt-get install python-dev -y
    sudo apt-get install python-pip -y
    sudo pip install ipython
    sudo apt-get install python-zmq
    sudo apt-get install python-markupsafe
    sudo apt-get install python-jsonschema
    sudo apt-get install python-zmq -y
    sudo apt-get install python-markupsafe -y
    sudo apt-get install python-jsonschema -y
    sudo pip install jinja2
    sudo pip install tornado
    sudo luarocks install luacrypto
    @@ -28,7 +28,7 @@ sudo luarocks install lzmq
    sudo luarocks install lbase64
    sudo luarocks install uuid
    # add some decoders for iTorch audio and video
    sudo apt-get install gstreamer1.0-libav
    sudo apt-get install gstreamer1.0-libav -y
    # Install iTorch
    git clone https://github.com/facebook/iTorch.git
    cd iTorch
  2. jetsonhacks revised this gist May 20, 2015. 1 changed file with 19 additions and 4 deletions.
    23 changes: 19 additions & 4 deletions installiTorch.sh
    Original file line number Diff line number Diff line change
    @@ -5,17 +5,32 @@
    # Python 2.7 or greater must be installed before running this script
    # Torch 7 should already be installed before running this script
    # iPython is loaded using pip, as repository version is 1.x version, > 2.0 is needed
    sudo apt-get install libzmq3-dev
    # Need to compile from source as repository version libzmq3-dev is not the correct revision
    wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
    tar xzvf zeromq-4.0.5.tar.gz
    cd zeromq-4.0.5
    ./configure
    make
    sudo make install
    cd ..

    sudo apt-get install python-dev
    sudo apt-get install python-pip
    sudo pip install ipython
    sudo apt-get install python-zmq
    sudo apt-get install python-markupsafe
    sudo apt-get install python-jsonschema
    sudo pip install jinja2
    sudo pip install tornado
    sudo luarocks install luacrypto
    sudo luarocks install env
    sudo luarocks install lzmq
    sudo luarocks install lbase64
    sudo luarocks install uuid
    # add some decoders for iTorch audio and video
    sudo apt-get install gstreamer1.0-libav
    # Install iTorch
    git clone https://github.com/facebook/iTorch.git
    cd iTorch
    sudo env "PATH=$PATH" luarocks make
    sudo chown -R $USER $(dirname $(ipython locate profile))



  3. jetsonhacks revised this gist May 18, 2015. 1 changed file with 8 additions and 13 deletions.
    21 changes: 8 additions & 13 deletions installiTorch.sh
    Original file line number Diff line number Diff line change
    @@ -5,22 +5,17 @@
    # Python 2.7 or greater must be installed before running this script
    # Torch 7 should already be installed before running this script
    # iPython is loaded using pip, as repository version is 1.x version, > 2.0 is needed
    if [ $(id -u) != 0 ]; then
    echo "This script requires root permissions"
    echo "$ sudo "$0""
    exit
    fi
    apt-get install libzmq3-dev
    apt-get install python-pip
    pip install ipython
    apt-get install python-zmq
    apt-get install python-markupsafe
    apt-get install python-jsonschema
    sudo apt-get install libzmq3-dev
    sudo apt-get install python-pip
    sudo pip install ipython
    sudo apt-get install python-zmq
    sudo apt-get install python-markupsafe
    sudo apt-get install python-jsonschema
    # Install iTorch
    git clone https://github.com/facebook/iTorch.git
    cd iTorch
    env "PATH=$PATH" luarocks make
    chown -R $USER $(dirname $(ipython locate profile))
    sudo env "PATH=$PATH" luarocks make
    sudo chown -R $USER $(dirname $(ipython locate profile))



  4. jetsonhacks revised this gist May 18, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions installiTorch.sh
    Original file line number Diff line number Diff line change
    @@ -13,9 +13,9 @@ fi
    apt-get install libzmq3-dev
    apt-get install python-pip
    pip install ipython
    apt-get python-zmq
    apt-get python-markupsafe
    apt-get python-jsonschema
    apt-get install python-zmq
    apt-get install python-markupsafe
    apt-get install python-jsonschema
    # Install iTorch
    git clone https://github.com/facebook/iTorch.git
    cd iTorch
  5. jetsonhacks revised this gist May 18, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion installiTorch.sh
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    # Install Python prerequisites on NVIDIA Jetson TK1 for iTorch
    # This is for https://github.com/facebook/iTorch
    # L4T 21.3, Torch 7 (http://torch.ch)
    # Python > 2.7 must be installed before running this script
    # Python 2.7 or greater must be installed before running this script
    # Torch 7 should already be installed before running this script
    # iPython is loaded using pip, as repository version is 1.x version, > 2.0 is needed
    if [ $(id -u) != 0 ]; then
  6. jetsonhacks revised this gist May 18, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions installiTorch.sh
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@
    # Install Python prerequisites on NVIDIA Jetson TK1 for iTorch
    # This is for https://github.com/facebook/iTorch
    # L4T 21.3, Torch 7 (http://torch.ch)
    # Python > 2.7 must be installed before running this script
    # Torch 7 should already be installed before running this script
    # iPython is loaded using pip, as repository version is 1.x version, > 2.0 is needed
    if [ $(id -u) != 0 ]; then
  7. jetsonhacks revised this gist May 18, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions installiTorch.sh
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@
    # Install Python prerequisites on NVIDIA Jetson TK1 for iTorch
    # This is for https://github.com/facebook/iTorch
    # L4T 21.3, Torch 7 (http://torch.ch)
    # Torch 7 should already be installed before running this script
    # iPython is loaded using pip, as repository version is 1.x version, > 2.0 is needed
    if [ $(id -u) != 0 ]; then
    echo "This script requires root permissions"
  8. jetsonhacks created this gist May 18, 2015.
    24 changes: 24 additions & 0 deletions installiTorch.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    #!/bin/sh
    # Install Python prerequisites on NVIDIA Jetson TK1 for iTorch
    # This is for https://github.com/facebook/iTorch
    # L4T 21.3, Torch 7 (http://torch.ch)
    # iPython is loaded using pip, as repository version is 1.x version, > 2.0 is needed
    if [ $(id -u) != 0 ]; then
    echo "This script requires root permissions"
    echo "$ sudo "$0""
    exit
    fi
    apt-get install libzmq3-dev
    apt-get install python-pip
    pip install ipython
    apt-get python-zmq
    apt-get python-markupsafe
    apt-get python-jsonschema
    # Install iTorch
    git clone https://github.com/facebook/iTorch.git
    cd iTorch
    env "PATH=$PATH" luarocks make
    chown -R $USER $(dirname $(ipython locate profile))