Hey!
Coming here to take some good tips about obfs4 compil from source... Not enough time since http://archives.seul.org/or/relays/Jul-2016/msg00101.html Now it's ok to try another time !
On the Raspbian set up, I've started with : apt-get install git golang-go golang-go.crypto-dev golang-go.net-dev golang-goptlib-dev golang-ed25519-dev golang-siphash-dev
After this, with /root/ account : go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy
Result is : *package git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy: cannot download, $GOPATH not set. For more details see: go help gopath*
I've tried many things, GOPATH=/home/petrusko and may be GOPATH=/home/petrusko/obfs4 Tried too to clone git with /git clone https://git.torproject.org/pluggable-transports/obfs4.git
/And now I'm lost with this GOPATH problem ! Is there a wiki explaining how to compil/install this obfs4proxy from source. I've found nothing about it...
From readme, I don't understand this...
To build: `go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy`
To install: Copy `$GOPATH/bin/obfs4proxy` to a permanent location (Eg: `/usr/local/bin`)
Many thx for help :)
On 15 Nov. 2016, at 21:41, Petrusko petrusko@riseup.net wrote:
Hey!
Coming here to take some good tips about obfs4 compil from source... Not enough time since http://archives.seul.org/or/relays/Jul-2016/msg00101.html Now it's ok to try another time !
On the Raspbian set up, I've started with : apt-get install git golang-go golang-go.crypto-dev golang-go.net-dev golang-goptlib-dev golang-ed25519-dev golang-siphash-dev
After this, with root account : go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy
Try not using root.
Result is : package git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy: cannot download, $GOPATH not set. For more details see: go help gopath
I've tried many things, GOPATH=/home/petrusko and may be GOPATH=/home/petrusko/obfs4 Tried too to clone git with git clone https://git.torproject.org/pluggable-transports/obfs4.git
And now I'm lost with this GOPATH problem !
$ go help gopath ... Here's an example directory layout:
GOPATH=/home/user/gocode ...
Try using GOPATH=/home/petrusko/gocode And running go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy As user petrusko.
Tim
Is there a wiki explaining how to compil/install this obfs4proxy from source. I've found nothing about it...
From readme, I don't understand this... To build: `go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy`
To install: Copy `$GOPATH/bin/obfs4proxy` to a permanent location (Eg: `/usr/local/bin`)
Many thx for help :)
-- Petrusko EBE23AE5
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
T
Thx Tim for help.
Now I'm using another user than root... But I'm still in a black hole (+headache), sadly without finding any document about how using this "go" software + obfs4 :'(
Sooory, I'm not really nice with source compiling... :s
_go help gopath :_ [...] Each directory listed in GOPATH must have a prescribed structure:
The src/ directory holds source code. The path below 'src' determines the import path or executable name.
The pkg/ directory holds installed package objects. As in the Go tree, each target operating system and architecture pair has its own subdirectory of pkg (pkg/GOOS_GOARCH). [...]
But I don't see any /src or /pkg in the downloaded git folder ?
_Here the content downloaded :_ $ dir -R /home/petrusko/obfs4/
obfs4/: ChangeLog common doc LICENSE obfs4proxy README.md transports
obfs4/common: csrand drbg log ntor probdist replayfilter socks5 uniformdh
obfs4/common/csrand: csrand.go
obfs4/common/drbg: hash_drbg.go
obfs4/common/log: log.go
obfs4/common/ntor: ntor.go ntor_test.go
obfs4/common/probdist: weighted_dist.go weighted_dist_test.go
obfs4/common/replayfilter: replay_filter.go replay_filter_test.go
obfs4/common/socks5: args.go args_test.go rfc1929.go socks5.go socks_test.go
obfs4/common/uniformdh: uniformdh.go uniformdh_test.go
obfs4/doc: obfs4proxy.1 obfs4-spec.txt
obfs4/obfs4proxy: obfs4proxy.go proxy_http.go proxy_socks4.go pt_extras.go termmon.go termmon_linux.go
obfs4/transports: base meeklite obfs2 obfs3 obfs4 scramblesuit transports.go
obfs4/transports/base: base.go
obfs4/transports/meeklite: base.go meek.go
obfs4/transports/obfs2: obfs2.go
obfs4/transports/obfs3: obfs3.go
obfs4/transports/obfs4: framing handshake_ntor.go handshake_ntor_test.go obfs4.go packet.go statefile.go
obfs4/transports/obfs4/framing: framing.go framing_test.go
obfs4/transports/scramblesuit: base.go conn.go handshake_ticket.go handshake_uniformdh.go hkdf_expand.go
On 15 Nov. 2016, at 23:53, Petrusko petrusko@riseup.net wrote:
Thx Tim for help.
Now I'm using another user than root... But I'm still in a black hole (+headache), sadly without finding any document about how using this "go" software + obfs4 :'(
Sooory, I'm not really nice with source compiling... :s
go will set up the directories in the GOPATH for you. You do not need to do anything to set them up yourself.
Please run the following commands as the normal user petrusko:
mv /home/petrusko/gocode /home/petrusko/gocode.old mkdir /home/petrusko/gocode export GOPATH=/home/petrusko/gocode go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy
What does it say when you run those commands?
Tim
go help gopath : [...] Each directory listed in GOPATH must have a prescribed structure:
The src/ directory holds source code. The path below 'src' determines the import path or executable name.
The pkg/ directory holds installed package objects. As in the Go tree, each target operating system and architecture pair has its own subdirectory of pkg (pkg/GOOS_GOARCH). [...]
But I don't see any /src or /pkg in the downloaded git folder ?
Here the content downloaded : $ dir -R /home/petrusko/obfs4/
obfs4/: ChangeLog common doc LICENSE obfs4proxy README.md transports
obfs4/common: csrand drbg log ntor probdist replayfilter socks5 uniformdh
obfs4/common/csrand: csrand.go
obfs4/common/drbg: hash_drbg.go
obfs4/common/log: log.go
obfs4/common/ntor: ntor.go ntor_test.go
obfs4/common/probdist: weighted_dist.go weighted_dist_test.go
obfs4/common/replayfilter: replay_filter.go replay_filter_test.go
obfs4/common/socks5: args.go args_test.go rfc1929.go socks5.go socks_test.go
obfs4/common/uniformdh: uniformdh.go uniformdh_test.go
obfs4/doc: obfs4proxy.1 obfs4-spec.txt
obfs4/obfs4proxy: obfs4proxy.go proxy_http.go proxy_socks4.go pt_extras.go termmon.go termmon_linux.go
obfs4/transports: base meeklite obfs2 obfs3 obfs4 scramblesuit transports.go
obfs4/transports/base: base.go
obfs4/transports/meeklite: base.go meek.go
obfs4/transports/obfs2: obfs2.go
obfs4/transports/obfs3: obfs3.go
obfs4/transports/obfs4: framing handshake_ntor.go handshake_ntor_test.go obfs4.go packet.go statefile.go
obfs4/transports/obfs4/framing: framing.go framing_test.go
obfs4/transports/scramblesuit: base.go conn.go handshake_ticket.go handshake_uniformdh.go hkdf_expand.go _______________________________________________ tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
T
Please run the following commands as the normal user petrusko:
mv /home/petrusko/gocode /home/petrusko/gocode.old mkdir /home/petrusko/gocode export GOPATH=/home/petrusko/gocode go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy
What does it say when you run those commands?
Tim
Thx! It looks like better, Here is the result of the last command line : $ go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy # github.com/dchest/siphash gocode/src/github.com/dchest/siphash/blocks_arm.s:2 5a: No such file or directory: textflag.h # golang.org/x/crypto/poly1305 gocode/src/golang.org/x/crypto/poly1305/sum_arm.s:8 5a: No such file or directory: textflag.h
There is new content inside the /home/petrusko/gocode ... I see /pkg + /src inside.
On 16 Nov. 2016, at 00:12, Petrusko petrusko@riseup.net wrote:
Please run the following commands as the normal user petrusko:
mv /home/petrusko/gocode /home/petrusko/gocode.old mkdir /home/petrusko/gocode export GOPATH=/home/petrusko/gocode go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy
What does it say when you run those commands?
Tim
Thx! It looks like better, Here is the result of the last command line : $ go get git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy # github.com/dchest/siphash gocode/src/github.com/dchest/siphash/blocks_arm.s:2 5a: No such file or directory: textflag.h # golang.org/x/crypto/poly1305 gocode/src/golang.org/x/crypto/poly1305/sum_arm.s:8 5a: No such file or directory: textflag.h
textflag.h is an internal go header. https://golang.org/src/runtime/textflag.h
Maybe your go install is broken, or you need the go dev packages? Maybe your version of go is too old? Maybe your compiler doesn't work with go?
I really don't know if I can help - I don't know enough about go.
These seem vaguely related: https://github.com/derekparker/delve/issues/56 https://stackoverflow.com/questions/28265225/go-get-sys-textflag-h-missing
Tim
There is new content inside the /home/petrusko/gocode ... I see /pkg + /src inside.
-- Petrusko EBE23AE5
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
T
Thx Tim for this help !
No problem if you don't know how to easily solve it ;) The first step about exact command lines to type is now solved, and now it's something else about go (may be). Have to find why my system isn"t compiling this code!
Thx for your help. If I find something interesting, no problem about writing a quick paper "how to" ;)
Good luck, thx!
tor-relays@lists.torproject.org