Skip to content

Instantly share code, notes, and snippets.

@doegox
Created October 28, 2016 07:37

Revisions

  1. doegox created this gist Oct 28, 2016.
    22 changes: 22 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    # For socat v1

    sudo apt-get build-dep socat/testing
    sudo apt-get install libreadline-dev
    apt-get source -t testing socat
    cd socat-1.7.3.1
    sed -i 's/ -- --disable-readline//' debian/rules
    dpkg-buildpackage -uc -us
    cd ..
    sudo dpkg -i socat_1.7.3.1-1_amd64.deb

    # For socat v2 (from experimental)

    sudo apt-get build-dep socat/experimental
    sudo apt-get install libreadline-dev
    apt-get source -t experimental socat
    cd socat-2.0.0~beta9
    sed -i 's/ -- --disable-readline//' debian/rules
    dpkg-buildpackage -uc -us
    cd ..
    sudo dpkg -i socat_2.0.0~beta9-1_amd64.deb