Skip to content

Instantly share code, notes, and snippets.

View glamrock's full-sized avatar
🐝
hacking on things at Berkman <3

Griffin Boyce glamrock

🐝
hacking on things at Berkman <3
View GitHub Profile
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
Setting up tor (0.2.3.25-1) ...
* Starting tor daemon... [ OK ]
Setting up torsocks (1.3-3) ...
Setting up trousers (0.3.10-3) ...
* Starting Trusted Computing daemon tcsd [fail]
invoke-rc.d: initscript trousers, action "start" failed.
dpkg: error processing trousers (--configure):
subprocess installed post-installation script returned error exit status 137
Processing triggers for ureadahead ...
Setting up tor-geoipdb (0.2.3.25-1) ...
cyril@ISISmainframe:~$ cd Pond/
cyril@ISISmainframe:~/Pond$ sudo apt-get install golang git libgtk-3-dev libgtkspell3-3-dev libtspi-dev trousers tor mercurial
[sudo] password for cyril:
Reading package lists... 0%
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version.
The following extra packages will be installed:
apparmor-easyprof debhelper dh-apparmor gir1.2-gtkspell3-3.0 golang-doc
Setting up trousers (0.3.10-3) ...
* Starting Trusted Computing daemon tcsd [ OK ]
cyril@ISISmainframe:~$ cd Pond/
cyril@ISISmainframe:~/Pond$ $GOPATH/bin/client
bash: /bin/client: No such file or directory
cyril@ISISmainframe:~/Pond$ go get github.com/agl/pond/client
package github.com/agl/pond/client: cannot download, $GOPATH not set. For more details see: go help gopath
cyril@ISISmainframe:~/Pond$ ls
gopkg
cyril@ISISmainframe:~/Pond$ export GOPATH=$HOME/Pond/gopkg

So on install from source, ran into an issue with TPM. Initially, trousers failed to install properly (leading to failure when trying to configure TPM), but rebooting/reinstalling trousers seemed to work.

However, trousers fails to set TPM permissions in Ubuntu. This is apparently a known issue from 2013 (Ubuntu issue #963587).

The fix is, in theory, pretty simple, just add permissions to the relevant directories via command line: sudo chown tss:tss /dev/tpm* && sudo chown -R tss:tss /var/lib/tpm

...but of course only works if you have TPM enabled already.

Apr  1 13:27:26: Connecting to local tcsd

Apr 1 13:27:26: Attempting to create NVRAM index 25

@glamrock
glamrock / gist:11005975
Created April 17, 2014 19:20
Spotify installation for Debian Wheezy (easy)
wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl0.9.8_0.9.8o-4squeeze14_i386.deb
wget http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.4.183.g644e24e.428-1_i386.deb
# or for x64
# wget http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.4.183.g644e24e.428-1_amd64.deb
apt-get install libqt4-dbus libqt4-network libqt4-xml libqtcore4 libqtdbus4 libqtgui4 qdbus
dpkg --install libssl0.9.8_0.9.8o-4squeeze14_i386.deb
dpkg --install spotify-client_0.9.4.183.g644e24e.428-1_i386.deb
@glamrock
glamrock / satori_fixes.md
Last active August 29, 2015 14:00
Things to be added/fixed in Satori before release

###Current to-fix list

  • Add downloads of source code, to comply with GPL. What, seriously? Yes, seriously. =/
  • Download links with tooltips explaining to check downloads folder for the file
  • l10n string update
  • Guides section with instructions on how to use different software

###SSL certificate fingerprint comparison (MITM detection)

The idea would be to fetch favicons onload, compare ssl cert fingerprint with hardcoded fingerprint, then exclude any downloads on sites that appear to be subject to MITM. This is not possible in Chrome, as the webrequest API hook doesn't cover SSL certificates. I'm pretty bitter about this, as this is dead fucking simple to do in Firefox, but FF addon site is heavily MITM'd and filtered. =/ Hard trade-off. Current plan is to hassle Ryan Sleevi and Peter Eckersley a

@glamrock
glamrock / gist:11408051
Created April 29, 2014 18:19
bug: installing pond on debian (trousers/tpm issue #2)
griffin@kitsunegari:~/Pond$ go get github.com/agl/pond/client
# github.com/agl/pond/client/tpm
tpm.go:6:26: fatal error: trousers/tss.h: No such file or directory
compilation terminated.
# pkg-config --cflags gtkspell3-3.0 gtk+-3.0
Package gtkspell3-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtkspell3-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtkspell3-3.0' found
exit status 1
@type extra-info 1.0
extra-info bolobolo1 9EA317EECA56BDF30CAEB208A253FB456EDAB1A0
published 2014-04-26 15:55:54
write-history 2014-04-26 15:52:48 (900 s) 22811215872,23065284608,22156054528,22744236032,22535396352,23695549440,24851478528,25329056768,25346375680,24906736640,25563422720,24340152320,24940786688,23334574080,23640225792,22191464448,22577485824,22304082944,22371855360,23296574464,23888780288,23188441088,21985309696,22376736768,22917678080,23405836288,22736200704,23744280576,22906699776,23426201600,23570699264,23893476352,23890041856,21741416448,19724235776,18716786688,17267187712,18244556800,16874028032,15907970048,14238544896,14790932480,14379412480,14014267392,15559831552,17249729536,14094696448,16107710464,17547808768,20176755712,20117219328,18151633920,20514625536,23290051584,22917240832,22423566336,22922964992,23320560640,24056960000,23854556160,25283884032,23586736128,23137601536,23795893248,21890024448,22715705344,21711056896,23304150016,22878117888,20789849088,20518682624,23807258624,23489

OSX: https://s3-us-west-2.amazonaws.com/satori2/bin/TorBrowser-3.6.1-osx32_fa.dmg
Windows: https://s3-us-west-2.amazonaws.com/satori2/bin/torbrowser-install-3.6.1_fa.exe
Linux 32-bit: https://s3-us-west-2.amazonaws.com/satori2/bin/tor-browser-linux32-3.6.1_fa.tar.xz
Linux 64-bit: https://s3-us-west-2.amazonaws.com/satori2/bin/tor-browser-linux64-3.6.1_fa.tar.xz

obfs bridges (copy these into bridges area like you normally would):

obfs3 192.36.27.70:57023 8662da9af97c115a7b72f8ba08f6b2a9f2d3f465 
obfs3 54.229.127.183:40872 a95a5bdd1c0b0253b0cefde645557debf9d30fc9 

obfs3 192.36.27.81:57149 e66785654f5c9c168eea9ce01fa3f99cf6999331