Monthly Archives: January 2016

Internet passthrough on Ubuntu | HTC Desire S | XDA Forums

Internet passthrough on Ubuntu | HTC Desire S | XDA Forums

……..I hope this solves your problem.

Edit /etc/rc.local sudo nano /etc/rc.local and add the following:

echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null
iptables -A POSTROUTING -t nat -j MASQUERADE -s
iptables -A FORWARD -i eth0 -o usb0 -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i usb0 -o eth0 -j ACCEPT
#forward all dns queries from usb0 to google’s dns server
iptables -t nat -I PREROUTING -i usb0 -p udp –dport 53 -j DNAT –to

then at terminal type:
sudo /etc/rc.local

that will get you connectivity, but it will be short lived because htc is stupid and will disconnect if it doesn’t detect the winblows htc software crap.
So you will need to fake it out. Turns out the phone is listening for htc software on port 6000 for 00 02 00 00 hex.

first you have to find the ip address of your phone (if arp doesn’t work or you get command not found, you probably need to sudo arp):
phoneip=$(arp -n | grep usb0 | awk ‘BEGIN {FS=” “} {print $1}’)

then you tell the phone that htc software is listening:
echo -n -e “\x00\x02\x00\x00” | nc $phoneip 6000 > /dev/null

To make that automagic each time us a script. Call it htcfaker or whatever:


while :; do
phoneip=$(arp -n | grep usb0 | awk ‘BEGIN {FS=” “} {print $1}’)
while [ -z $phoneip ]; do
sleep 15
phoneip=$(arp -n | grep usb0 | awk ‘BEGIN {FS=” “} {print $1}’)

echo -n -e “\x00\x02\x00\x00” | nc $phoneip 6000 > /dev/null

while [ “$phoneip” != “” ]; do
sleep 15
phoneip=$(arp -n | grep usb0 | awk ‘BEGIN {FS=” “} {print $1}’)

Then in your startup applications, point to that script.

Hope it helps!

Last edited by haz3lnut; 22nd July 2012 at 07:36 PM. Reason: may need to sudo arp
#COPIED HERE INCASE ever disappears without trace. Please call +447855129142 if this repost breaks copyright etc.

Cryptocurrencies the way ahead

Why is are these technologies emerging? (“They can’t stop it”)

Code is law – a quick overview, click here (Havard Magazine)

The immediate future

Colu’s OpenAsset
Local Exchanges
Barter / Paying your tax

bitcoin <- the lightening network

One of bitcoin’s blockchain ideas is executing scripts, this gave birth to Ethereum, however that will be eclipsed this “Turin complete” system like Tau Chain: A ‘Decentralized App Store’ with Greater Flexibility than Ethereum, providing a defined cost of computing. (Click on the link above to read the Coin Telegraph article)

CT: How does it compare to Ethereum?

HMC: Ethereum is a Turing complete logic, per block. This means they can easily prove that they can compute any computable thing in one block, but at the cost of not being able to necessarily know how much resource it will take to do the block’s computation.

Because of this, they need to back their resources with a fixed token asset, and set a network-wide resource price on computations in order to avoid abuse of resource.  Further, in order to secure exchange, they require everyone who is validating the block to effectively re-execute everything that has ever been executed.

To contrast, Tau is a decidable complete logic, per block, with Turing completeness recovered by the iteration of multiple blocks.  This means that we cannot compute any computable thing in one block, but we can know exactly how much resource expenditure a block will require to verify. We can still compute any computable thing; it may just require structuring the execution to run over the span of multiple blocks.  Because of this, Tau resources do not need to be backed directly by a token, and resource exchange can be negotiated by the users as they see fit.

Further, because it is decidable Tau can contextualize all of its logical resolutions, the only processes that necessarily must be re-executed by all participants is the resource expenditure required to persist the root chain securely. Any other process need only be re-executed by participants interested in verifying activity that occurred within that context, and can be ignored by other users, without sacrificing any security in the long run.



In response to: Scrap plans forcing self employed & small business to do 4 tax returns yearly

In response to: Scrap plans forcing self employed & small business to do 4 tax returns yearly

Question: Is this thing going to go away? Nope. So we might as well embrace change. We don’t live in a democracy, government is NOT run for benefit of the people, that’s the reality of life.

Unless supporting the military industrial complex to employ lots of middle class people in manufacturing so dictators can bomb the shit out of others so we can continue to have cheap goods from cheap oil and commodity prices that do not bear any relation to the damage done getting them out of the ground is doing to the planet. Is this a good thing?

You’re unhappy about increasing the tax take that this measure maybe driving at? Then expect more expansion of the MIC to support the cheap prices of everything, destroy the planet, bomb people we don’t know to pay for the increasing cost of the NHS, Education and retirement. Money has to come from somewhere? Increasing the tax taken of the self employed is thin edge of the wedge? The Self employed are the only people contributing, because the Amazon’s, Google’s and Apple’s of this world aren’t paying any corporation tax.

I’m trying to be positive, this isn’t going to get any better. GDP is no longer a valid economic yarsdstick, Keynes v Hayek is as valid as Quantum v Newtonian physics – IE They do not matter because for some people neither are valid.

I propose that actually increasing tax take to pay for “government”: NHS, Education and retirement is redundant proposition and that we need to rethink the properties of money and how we relate to one another.

The Selfish Gene actually needs to be rethought, or maybe it will by Darwinism. The Self cares for the self, self cares for family, families care for the community. Communities are tribal in nature which is West is nurtured into Nationalism by government.

When there is no government to fund NHS, Education and retirement. Nationalist propaganda struggles to find a home. That place is much happier place? And that certainly will not be a world without Doctors, schools and older wiser people. But I hope it is a world with less oppression.

Happy New Year – Mark

This entry was posted in Rants by .