kde-connect and IPtables save

Also see https://technetset.com/install-kde-connect-1-0-kubuntu-16-04/


indicator-kdeconnect for 16.04 general Ubuntu releases, not KDE

September 16th, 2016 at 20:37 | #9

If it is just notifications you want then install an older version of kdeconnect along with indicator-kdeconnect and it works fine to share notifications between devices, share a clipboard, send files between devices and usesthe phone as a keyboard/mouse – plus browse device if it on kittkat or lower (doesn’t seem to work for android 5 or 6.

https://code.launchpad.net/~vikoadi/+archive/ubuntu/ppa/ has up to version 0.8, along with the indicator required for unity/gnome/pantheon/anything else not kde.
http://www.cnx-software.com/2016/09/15/receive-android-sms-call-notifications-in-ubuntu-16-04-with-kde-connect-or-not/

sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys D05009CB


kde-connect v1 now part of kubuntu

###

kde-connect on Linux Mint 18 xfce - 16th Sept 2016

sudo apt-get install kdeconnect-plasma -y
sudo add-apt-repository ppa:lutostag/indicator-kdeconnect-test [lxle, hmmm]
or
sudo add-apt-repository ppa:vikoadi/ppa        [Official v1 ppa]
sudo apt-get update
sudo apt-get install indicator-kdeconnect -y

[lxle trying to get notifications on PC end to work]
@bam80 yeah unfortunately it is still a bit finicky.
The only way I get it to work currently is to run:
kcmshell5 kcm_kdeconnect 
# make sure it it connected to your device,
then only after that...

indicator-kdeconnect
#works for me and shows up in the system tray.

https://github.com/vikoadi/indicator-kdeconnect/issues/31

Added KDEConnect daemon in start up
Added indicator-kdeconnect in start up
https://forums.linuxmint.com/viewtopic.php?t=224013#p1205714

https://ubuntu-mate.community/t/kde-connect-indicator/634
-> Connect Indicator, you can now use KDE Connect in desktops which support
 Ubuntu AppIndicators, such as Unity, Pantheon (elementary OS), Xfce 
(Xubuntu) and so on.
http://www.makeuseof.com/tag/kde-connect-sync-android-linux/

https://code.launchpad.net/~vikoadi/+archive/ubuntu/ppa/

#########
14.04 – lxle install

sudo add-apt-repository ppa:vikoadi/ppa
sudo apt-get update ; sudo apt-get install indicator-kdeconnect -y

#########

 

ADD to LXsession configuration in AUTOSTARTUP!!!!

sudo iptables -A INPUT -i eth0 -m iprange --src-range 192.168.0.1-192.168.0.254  -p tcp --match multiport --dports 1714:1764 -j ACCEPT

sudo iptables -A INPUT -i eth0 -m iprange --src-range  192.168.1.1-192.168.1.254 -p udp --match multiport --dports 1714:1764 -j ACCEPT

sudo iptables -A INPUT -i eth0 -m iprange --src-range  10.64.64.64-10.64.64.254 -p udp --match multiport --dports 1714:1764 -j ACCEPT

####

https://www.digitalocean.com/community/tutorials/how-to-migrate-iptables-firewall-rules-to-a-new-server

 

List Rules by Specification

To list out all of the active iptables rules by specification, run the iptables command with the -S option:

sudo iptables -S

sudo iptables-save > iptables-export_base
sudo iptables-restore < iptables-export_base

 

https://www.thomas-krenn.com/en/wiki/Saving_Iptables_Firewall_Rules_Permanently#iptables-persistent_for_Debian.2FUbuntu

 

sudo apt-get install iptables-persistent -y

 

During the installation, you will asked if you want to save your current firewall rules. Response yes, if you want to save the current rule set.

 

If you update your firewall rules in the future, and want to save the changes, run this command:

 

sudo invoke-rc.d iptables-persistent save

Swaping lines in VIM

~/.vim/plugin/swap_lines.vim

CTRL-J
CTRL-K

source: http://stackoverflow.com/questions/741814/move-entire-line-up-and-down-in-vim

function! s:swap_lines(n1, n2)
    let line1 = getline(a:n1)
    let line2 = getline(a:n2)
    call setline(a:n1, line2)
    call setline(a:n2, line1)
endfunction

function! s:swap_up()
    let n = line('.')
    if n == 1
        return
    endif

    call s:swap_lines(n, n - 1)
    exec n - 1
endfunction

function! s:swap_down()
    let n = line('.')
    if n == line('$')
        return
    endif

    call s:swap_lines(n, n + 1)
    exec n + 1
endfunction

noremap <silent> <c-j> :call <SID>swap_up()<CR>
noremap <silent> <c-k> :call <SID>swap_down()<CR>

How to grep a log file by date with double space CHECKTODAY=$(date +”%b %e”)

You are grep ping a log file and you NEED to keep the padding in a date field.

Mystery / Misery – take your pick, until I found this page

Problem
Log file looks like this

Jul  2 10:14:28 ns380346 postfix/smtp[2179]: 00F54FFAE7: to=<mark@

Note the double space between Jul & 2, you get the padded space with %e, but where is it??

CHECKTODAY=$(date +"%b %e")
$CHECKTODAY
~# echo $CHECKTODAY
Jul 2
~# echo "$CHECKTODAY"
Jul  2

Simples?

anarchy card

Anarchy – only when is the question

Ray Kurzweil’s book, The Age of Spiritual Machines. Moore’s Law will fail at around 2020, at which point a paradigm shift in computing technology will occur.

Currently:

SDR + 21 Inc = anarchy

These two technologies can and will provide a replacement for the Internet as we know it and the global finance system.

The only question is when. And it looks like a little after 2020, the hardware required for software defined radio will plummet in price when silicon chips are replaced with another information processing technology. Information processing technology is essentially switching technology and this could be biological via DNA and protein structures where light as used instead of electrical circuits through the logic gates which they do currently.

How to twitter large summary card

  1. Find a plug-in, I used Facebook Open Graph, Google+ and Twitter Card Tags
  2. Read https://dev.twitter.com/cards/overview
  3. Use validator – must do, as it adds the domain to whitelist

YOU MUST USE THE VALIDATOR!!

This web page: http://mx.thirdvisit.co.uk/2016/05/04/totnes-hydro-weir/
Was then twittered with the proceeding text then just the link! And image gets added automatically! Which if someone then click on, takes them automatically to the web page

Screenshot from 2016-05-04 21:18:02

My notes to getting plug-ins working under Ubuntu with KeePass (OtpKeyProv)

This method does not work with KeePassX, plugins only work with KeePass2/?1 with mono underneath

http://maxolasersquad.blogspot.co.uk/2013/10/install-keepasshttp-on-ubuntu.html
cd /usr/lib/keepass2/
sudo mkdir plugins

cd plugins

https://sourceforge.net/p/keepass/discussion/329221/thread/d6f5b5b5/
you don’t need mono-complete
you only need a fitting compiler which is in the mono-dmcs package in ubuntu oneiric or newer and mono-gmcs in natty or older
sudo apt-get install mono-dmcs

https://launchpad.net/~jtaylor/+archive/ubuntu/keepass
sudo add-apt-repository ppa:jtaylor/keepass
sudo vi /etc/apt/sources.list.d/keepass2.list

then ADD for example:
**deb http://ppa.launchpad.net/jtaylor/keepass/ubuntu utopic main **
**deb-src http://ppa.launchpad.net/jtaylor/keepass/ubuntu utopic main**

My goal was to get OtpKeyProv 2FA working

Why is bitcoin at $410

“The free 21 Bitcoin Library and command line interface (CLI) is a full-featured version of the 21 software package that you can use to get a bitcoin-payable web service up and running in minutes. ” Is on it’s way.

“You need a separate micropayments channel for each API! Right now, we do support micropayment channels at the level of each individual API as described in the example here. However, we will soon be adding support for each client to open single long-running payment channel to 21.co to cover micropayments for all APIs your client is purchasing from the entire marketplace.”

  • 21 inc get free 21 Bitcoin Library rocking
  • Micropayment API becomes extensive
  • Netflix uses 21 inc micropayment network
    • make more profit
  • TV manufacturers put 21 inc chip in
    • get continuous revenue stream from streaming companies

The blockchain doesn’t scale, the blockchain doesn’t scale, the roof if falling in. No it is not. Nor is it likely to.

Why is bitcoin at $410?

This entry was posted in weblog by .

cryptocurrency round-up

  • We have Bitcoin scalability debates (not issues)
  • Dashcoin, pretend to the throne with some scalability issues
  • Bitcoin-NG
  • Then the joker in the pack Blackcoin because it has community and Halo/NightTrader linked to it

Will Zcash really start to irritate the authorities?

Internet passthrough on Ubuntu | HTC Desire S | XDA Forums xda-developers.com

Internet passthrough on Ubuntu | HTC Desire S | XDA Forums xda-developers.com

……..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 -P FORWARD ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.99.0/24
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 8.8.8.8

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:

#!/bin/bash

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}’)

done
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}’)
done
done

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 xda-developers.com 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)

http://codev2.cc/download+remix/Lessig-Codev2.pdf

The immediate future

Colu’s OpenAsset
Local Exchanges
Barter / Paying your tax
Darknet

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 .

so how is there also money for war

Because unfortunately it allows most of the West to have a very high standard of living and if Joe Public knew exactly how their standard of living was directly linked to the military industrial complex, the killing involved, the drug laundering, etc. I bet they might even vote for more of it to increase their standard of living. Humans are genetically programmed to look after their kith & kine, family / village / town etc. We breed more successfully than rats and religion has become very strong. For example one group who believe their God is the only true God breeds at 7% per annum, which is a double factor of 10 years. This is causing problems.

There isn’t enough contemplation time in the modern day to reflect on making the most of life. Death is practically a banned subject in Western culture and most religions have an obsession with the afterlife. We’ll just have to see what computers choose for us in 20 years time as the point of singularity draws nearer.

Invented by Antoine LeCoultre in 1844, the Millionometer was the first instrument in history capable of measuring microns. He sat on his invention for 50 years waiting for the 1900 Universal Exhibition in Paris before showing it. Did the German manufacturers of Field Guns use the technology – I doubt it, it arrived too late. What if he had patented his instrument in 1844. He might not have been granted the patent because of it’s military implications. Would the Swiss have let the Germans have had the designs? We shall never know, but we do know that extreme AI – will have NO MASTER.

CRISPR technology will look like a walk in the park.

https://en.wikipedia.org/wiki/Technological_singularity

eBTC – distributed email you pay for with BTC

The eBTC Wallet is written is as a wrapper for GPG
The Wallet is also a basic deterministic BTC wallet
Your GPG key isn’t important as you can update that against a supernode at anytime. You just have to write down your pass phrase
Wallet scans GPG public key hash on supernode network, if mail present – pull from supernode which has holds it, decrypt and write “message read to eBTC blockchain” – keep local copy for when it’s deleted from the supernode(s)
Wallet provides sending interface, you submit email paying for how long it’s held on a supernode in seconds, define delete on read or delete on read X times, hold on other Supernodes
When the user sends an eBTC email – the user receives a standard internet email
You can view what emails you have sent and delete them from the supernodes you choose for each email, you may have picked a different supernode for a particular service offering
The wallet is the user node, it communicates with a supernode and you can choose which supernode at what prices
Deletion email from eBTC, you can choose to delete from the supernodes it’s held on, if more than one was choosen at sending time

The supernode stores public keys for email addresses, but only stores the email address as a hash
A sender must make a public key request knowing the email address in order to be able to create a hash for the supernode to return the search
In order to submit your GPG public key and bitcoin public key you submit signed token to your supernodes

Supernodes are, on all the time
Supernodes are SMTP servers which store GPG emails from eBTC wallet clients – but don’t forward
Senders have a micropayment channel setup with a supernode for sending GPG emails via their wallet and vica versa for receiving email
The eBTC blockchain contains two sets of data:
– “hash of GPG public key user | messageID | SupernodeID (held on)”
– “hash of GPG public key user ‘read’ | messageID | at UTC | on SupernodeID” (supernodes only hold ONE copy of the email for multiple recipients)
Supernodes use some environmentally friendly CPU only algo and number eBTC you have generated puts you on the leader board within the wallet app to advertise your prices
The eBTC wallet bootstraps supernodes with in the reference client and the allows supernodes to effectively advertise their brand
Supernodes can exchange eBTC and thuse to position their brand within the reference client
Supernodes send “read” confirmations to standard email addresses
Supernodes code can prune away to keep the lid on blockchain sizes, automatically remove blockchain data if emails read by all recipients redundant
Imagine eBTC is like sunshine, it can be used are laid down like coal or oil but the raw energy of creation is for all intents and purposes unlimited

Installing VirtualBox Additions under LXLE v14.04.3 64 bit

VirtualBox Additions under LXLE v14.04.3 64 bit
sudo apt-get install dkms build-essential linux-headers-generic linux-headers-$(uname -r) virtualbox-guest-x11
cd /media/mark/VBOXADDITIONS_5.0.10_104061
./VBoxLinuxAdditions.run
sudo /etc/init.d/vboxadd setup

Shared folders under VirtualBox
sudo adduser [username] vboxsf
– THEN restart the VirtualBox!

Thanks to:
https://forums.virtualbox.org/viewtopic.php?t=15679
http://askubuntu.com/questions/642991/virtualbox-ubuntu-14-04-vboxclient-the-virtualbox-kernel-service-is-not-runnin
http://www.howtogeek.com/187703/how-to-access-folders-on-your-host-machine-from-an-ubuntu-virtual-machine-in-virtualbox/

Friday 13th November 2015 & when singularity meets cheap energy

Everybody in the West wants a high standard of living created by cheap energy, at the end of the last century we got into bed with the Middle East; for which we are now paying the price for pissing people off. Everybody knows about the Miners Strike. A bunch of people allegedly getting very high quality coal out of the ground uneconomically.

Whereas nobody talks about the ARMS manufacturers in the UK (4th in the world) supplying weapons with UK tax payers money as a subsidy to Syria and Yemen etc. (Thank you Mr Blair for reneging on your manifesto promise to stop Credit Export Guarantees.) WE HAVE CAUSED the current refugee crisis.

If you think the refugee crisis is WRONG, think about tax credits, social housing, the NHS, education, the police, the armed forces – the West is built on CHEAP energy. Could we have these things without the shit in the Middle East? Think carefully about the things you dislike in the news because the odds are we’re actually personally involved with perpetuating the bollocks.

“Deficit spending”, does the average politician actually know what it is? Do you know what it is? It is a belief that in the future, things will be better and that we will forward BORROW from the unborn TODAY so that we can pay for the welfare state and the miltary industrial complex TODAY; to perpetuate the control of energy supply in foreign countries – we really don’t care about. Until the population who are sick of being shelled and gassed by the weapons we’ve supplied to their dictators decide to upsticks and visit us.

In order for the unborn to pay this debt back GROWTH will have to occur to allow the unbridled credit expansion which has come to exist since the US came off the Gold standard in 1971 to continue financing the Vietnam war by printing dollars to make bombs and guns.

The problem when any policician say “MORE GROWTH” it assumes that some magic bullet will come along, graze the next Einstein’s arse whilst coming out of the shower, cause a eureka momment and come up with an idea to produce almost free energy.

Fusion nuclear power – it ain’t going to happen for maybe another 10-15 years.

So what’s likely to happen is the system gambles on the creation of almost free energy from which ever solution rears it head. This gamble is being determined by “credit expansion”, a phrase you will hear thrown around on serious news programmes. When you hear this phrase, just substitute it for “free energy is just around the corner” so there is no need to worry about the debt being shovelled from a large height on the unborn.

The problems of the world really just start at the point in time when “singularity” meets almost free energy.

Religions will be regulated by the wealthy 1%, they are just not going to tolerate the extremists who are brainwashed by their respective “cults”. The 1% will gain the support of enough percentage to DNA profile people at birth to deal with this problem, I believe that eugenics in it’s broadest terms represents one of the greatest challenges within our lifetime.

Imagine a world where things are plentiful and everyone need not starve or have a poor education. That world could be now, but more so in the future, because the 1% will see a way to obtain yet more wealth by playing with the gene pool. The 1% have historically controlled the allocation of wealth and money.

Or maybe Skynet decides the fate of humanity?

Ray Kurzweil’s Singularity University

Ray Kurzweil’s latest graphs show that technology’s breakneck advances will only accelerate — recession or not. He unveils his new project, Singularity University, to study oncoming tech and guide it to benefit humanity.

How to: bitcoin cold wallet storage using random dice entropy to generate a deterministic seed phrase

PART A

1.
Next we need to install Electrum – this is for the offline machine were building
https://electrum.org/#download – keeping a copy, so we know exactly what was used to create the wallet
sudo apt-get install python-qt4 python-pip
sudo pip install https://download.electrum.org/Electrum-2.4.tar.gz

wget https://download.electrum.org/Electrum-X.Y.tar.gz
Substitute the X.Y for what is current, as above at the time of writing.

2.
http://www.swansontec.com/bitcoin-dice.html
Download Dice to Key
https://github.com/swansontec/dice2key

wget -O dice2key.zip https://github.com/swansontec/dice2key/archive/master.zip
unzip dice2key.zip

 

3.
Now do whatever you have to do to get the printer working &

4.
zbar (this is a python library that allows you scan QR codes) This can be quite hard to out and some people have suggested just using an online service to do this, IDIOTS ignore them. You need an offline signing machine to make this setup secure, now having both PC’s that can scan QR codes is very useful.

sudo apt-get install zbar-tools
sudo apt-get install libzbar0 libzbar-dev
sudo apt-get install python-dev
sudo pip install zbar

5.
Disconnect this PC from the Internet – you may choose not to reconnect it for some time if ever

PART B

1.
Lets generate random numbers

See this link as for single private key generation requirements https://www.reddit.com/r/Bitcoin/comments/2akdl5/howto_use_your_own_dice_rolls_to_generate_an/

2. Terminal to the directory you unzipped dice2key
./dice2key.sh 123456123456123456123456123456123456123456123456123
51 dice rolls – the dice2key software will now warn you it’s not 100, but we’re not using it for the actual key, just the entropy, but more than 51 rolls in Electrum v2.4 creates a seed phrase greater than 13 words.

[21:51] <m1bxd> Hullo anyone, electrum make_seed –entropy=XXXXXXX can generate a seed of MORE than 13 words, will this cause a problem in the future? or does it not matter – Cheers

[22:24] <ThomasV> m1bxd: no
And it does this regardless of what you set –nbits too, so I’ll leave it up to you how many dice rolls you do… One person on IRC #electrum thought this was a bug and implied that the seed phrase length should be determined by “–nbits” – I think this is a bug too. But not a dangerous one as stated by Thomas, please consult the IRC snippet above. Who I assume was/is Thomas Vögtlin.

The output of the dice is now in HEX from dice2key

91D89C79009852800BFFCCDC406B1BA0

Can you do more dice rolls which will result in more words for a longer seed phrase?
Yes according to Electrum lead developer you can increase the entropy at the make_seed stage

normalized_seedphrase = mnemonic.prepare_seed(seed_phrase)
s = hmac_sha_512("Seed version", normalized_seedphrase)

So I cannot see a reason for not doing more dice rolls and creating more entropy for Electrum?

3.
Next we need the number for Electrum as a decimal, which we can do from the command line:

echo "ibase=16; 91D89C79009852800BFFCCDC406B1BA0"|bc

We should get something like this

193862769152946304546066490817889639328

4.

Go to the command line, NOT the console within electrum and run

electrum make_seed --entropy=193862769152946304546066490817889639328

It will generate a SEED PHRASE with thirteen words like:

useless welcome frame safe door scrap lock swear frame height hotel endless depth

5.
Print this out several times

6.
Save it to a text file on a USB or two and save the file as “SEED PHRASE.TXT” on a USB stick called ALLKEYS, to be on the safe side DO NOT save this text file to the PC, as you may in the future accidentally connect it to the Internet and it could become compromised. You may choose not to give a password for the wallet, if you choose not to, immediately disable the machines networking ability at this stage.

7.
Use this seed phrase on the offline Electrum machine to create a new wallet – give the wallet a useful name and consider using a simple password. See previous step as to why.

8.
Copy the public keys from this Electrum wallet you want to deposit to on a new USB, label it PUBLIC KEYS
and save this file as bitcoin_address_public_keys.txt – you can grab these address from the terminal screen if you executed “electrum” from the shell.

9.
Export both bitcoin public addresses and bitcoin private keys to the USB labelled ALLKEYS
Wallet -> Private Keys -> Export

“File” bottom LHS navigate to your ALLKEYS USB stick “electrum_private_keys_john.csv” -> “Export”

If you open up this file there will be a column of private keys next to your public bitcoin addresses. These  are “WIF Compressed Private Keys”, 52 characters base58, starting with a ‘K’ or ‘L’.

For example:

KyPiXS1uPGo1yRnu4tXhz72qLzmYsAKhrnBQBdzKHT6xPYjXb5Hr

Print them out along with your seed phrase and seed phrase QR code.

Why print/save these “WIF Compressed Private Keys”? They allow you to recover your bitcoin without Electrum in the future, should you loose pretty everything in this tutorial. You can redeem and “sweep” / import them in the future to probably any other bitcoin wallet. Thus if you transfer bitcoins to the public bitcoin addresses to which you have an offline copy of this private key on the ALL KEYS USB or paper / QR code. If like me, you like paper and would regard it as more stable than taking another USB copy – you’ll be wasting a bit of paper doing some duplicates. Also take a laser process photocopy of these so that you’ve used another process which will by it’s nature have different image stability, especially if you did the original print outs on ink jet with low grade ink and paper.

Do not save this file to the computer if you have chosen to password protected your wallet, it renders the password process useless if you do. If you are never going to connect this PC to the internet again – it doesn’t matter about the password on an Electrum wallet and can due to human fragile memory be more of a hinderance than a help.

Also copy your wallet folder at /home/$USER/.electrum/wallets to this ALLKEYS USB stick

10.
Study this page and follow the instructions at https://electrum.orain.org/wiki/Cold_storage

Export the public master key from the Electrum machine to the PUBLIC KEYS USB stick, it will start
xpub661XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Save it in a separate file from the bitcoin address PUBLIC KEYS. Say for example call it public_master_key.txt

11.
Install Electrum on a standard Internet PC and create a new wallet using the instructions above, this is called a watching wallet.
It will contain the bitcoin public addresses, it can observe the transactions against them, but the wallet cannot sign any transaction on the wallet and therefore if this machine is compromised in anyway you cannot loose any bitcoin.

Only the offline machine can sign the bitcoin transactions. You then take the signed transaction generated on the offline machine, typically moving bitcoin from one address to another address.

Copy the transaction to a blank USB or other means like printed QR codes and webcams, to create an off-gapped setup.
Or use a mobile phone as a dumb intermediary to scan and display the transaction to the watching wallet / transaction broadcasting machine.

USB Stick key summary

PUBLIC KEYS
public bitcoin addresses for transferring coins to cold storage – start 18PNEanH83XXXXXXXXXXXXXXXXXXXXXX
public master key – start xpub661XXXXXXXXX

ALLKEYS
SEED PHRASE.TXT
public bitcoin addresses for receiving and the private keys associated with each address

PART C

So you’ve transferred some bitcoin to one of your public bitcoin addresses on the offline cold storage, which you can also see with the watcher wallet on the Electrum installation that is internet connected but how do we spend them again?

1.
Go to the watcher wallet, go to Send, nominate your amount to transfer then you will need to sign the transaction that has just been generated on the the signed by the offline setup.

2.
Export the transaction to be signed.

The easiest way to do this is to scan the barcode with your mobile or print out the transaction.

3.
Import transaction at the offline machine.

Go to Tools -> Load transaction -> From QR code

4.
Sign it after scanning or however you choose to import it.

5.
Turn the signed transaction back into a QR code.
Scan it with your phone or print it out.

6.
Return to your watcher wallet which is online

Go to Tools -> Load transaction -> From QR code

Select “Broadcast”

7. (There should always be a seven)

That’s it job down.  However if you wish to keep your bitcoin quantum computer secure, you should always transfer the whole of the amount of each bitcoin deposited on any singular address which have kept in a cold wallet when you move them to a new unused bitcoin address.

For example if you have 5 btc on one address in your cold wallet, if you want to 1btc to more accessible wallet you should do two bitcoin sends.

You should send 1 btc to your easy wallet and you should send 4 btc to an unused address on the cold wallet.

What is the Middle Class?

The middle class by classical definition on wikipedia is “about 25 percent of British society, reported high economic capital, high status of mean social contacts, and both high highbrow and high emerging cultural capital.” however you classify a person by this measure they nearly all have something in common.

Comfortable
What is comfortable, whilst we can look up a dictionary definition of comfortable as well, lets assume that one of the defining factors in modern life is not having to worry about money too much on a day to day basis.

Middle class begets more middle class with the 6% of the elite thats pretty much a solid majority which control the country. That’s leaving out who is actually in power politically, but it’s actually the group of people that who shape the way society functions.

Control
This group has always been in control in one way another through the years even when the country was under a feudal rule. Anything that disturbs this section of society’s distribution of wealth causes concern. Until something threatens this group’s existence or standard of living it doesn’t pay attention to it.

Selfish
Does this group perpetuate the selfish gene? It certainly becomes an interesting mind experiment if we apply the theory to the “group”. I personally cannot see any reason why it shouldn’t.

Inclusive
We came from a society that only allowed certain segments to vote but over time the vote became inclusive. Now in the 2015 UK General Election, can we honestly say that we would want this to be so? Just over 50 years ago since World War II, half a lifetime, we have a political force that ten years ago would have been labelled “racist, fascist, bigots“. Who are these people? Well whilst the group is inclusive to both sides of the political spectrum it contains a percentage that are part of my definition of the comfortable middle class.

Money
What is money? Well I’d would hazard a guess that most people don’t give the monetary system any more thought to that question than say where there Peacocks £2.99 t-shirt is manufactured or what the hourly rate of pay in relation to the UK minimum wage is there. What I can explain in a few sentences is after the financial crash of 2008 occurred, the “central banks” that help governments control the economy started to print money in a slightly different way to the Weimar republic of Germany between 1919-1923. Instead of printing money with paper, the central banks post-2008 generated it with computers.

Debtonomics (New economic term – Economics based on Debt, rather than Capital)
Now in pre-Hitler Germany printing money led to inflation, this led to goods costing more tomorrow than they do today. Too much money in the system, so people needed more wage money to stand still to survive what needs to be bought tomorrow.

Post-2008 computer generated money by mainly the US has caused an unprecedented boom in the stock market. This is the future value that pension companies place in companies they buy into. They want to obtain the highest return on their investment for their stakeholders. The stakeholders are the widows and pensioners who are no longer largely in the tax system paying “work force”.

So much money has been created out thin air, that companies are seeking to add value to their companies not by manufacturing new widgets that society needs nor providing services which are better than their competitors but just acquiring companies that do make things or have a better service product.

The new money printing called “Quantitative Easing”, regards of how it creates money maybe actually causing deflation, many “experts” believe this to be true. Personally with the frequent changes in measuring CPI and the dumping of the RPI in 2013 which lie to believe is hard to choose.

The long-term consequences of global QE are likely to permanently impair living standards for generations to come while creating a false illusion of reviving prosperity.

was said by Guggenheim’s Chairman of Investments and Global Chief Investment Officer, Scott Minerd. 26th March 2015. We are happy that increasingly more “serious people” come to the same conclusion which we posited first a 6 years ago wrote Zerohedge. “The cost of QE is greater than the income lost to savers and investors.”

Summary of QE
We know who QE is screwing and we know who QE is benefitting. Therefore do we need to understand the global economics – nope.

Fit for power? (UK)
We have politicians who want our vote, whose economic advisers are woefully unqualified by anybodies standpoint to navigate the post-2008 economic post-consumer society.

We have a society that may limit our path to inflationary growth because tomorrows manufactured goods will always be cheaper tomorrow and from a country point of view we will allow whole national infrastructure industries to be wiped out by economic rules created in a Keynesian pre-2008 world.

Do supermarket suppliers receive a fair market price for their products?
What will happen to the quality of the arable land in Europe under the stewardship of the European Union?

Middle Class, Working Class – do I care?
I don’t care because these labels aren’t helping anybody in any shape of form.

The monetary system is changing
Bitcoin will be patched in preparation for the lightning network – see Blockstream hires Rusty Russell

The new class system will comprise of those who:

  • Really understand money – (as the way money used to be, like gold)
  • Those that can create added value with digital money and digit assets
  • Those that use it

Dislocation
Such is the dy/dx of change with respect to the understanding of money and wealth transposing on society that any references to class, cease to have any meaning.

2015 May top Bitcoin sites and ‘happenings

Shocard
http://techcrunch.com/2015/05/05/shocard-is-a-digital-identity-card-on-the-blockchain/

21E6
http://www.cryptocurrencybuzz.com/21-inc-confirms-plans-for-mass-bitcoin-miner-distribution/
https://soundcloud.com/elux-1/21-inc-embedded-engineer-on-whaleclub-teamspeak

Streamium.io
http://mx.thirdvisit.co.uk/2015/05/25/streaming-recorded-video-via-streamium-io/

lightlist.io

ZeroNet
Slideshow about ZeroNet cryptography, site updates, multi-user sites

Bitcoin Lightning Network
http://www.reddit.com/r/Bitcoin/comments/2xcq4x/instant_bitcoin_transactions_proposal_lightning/
http://www.coindesk.com/could-the-bitcoin-lightning-network-solve-blockchain-scalability/

Streaming recorded video via streamium.io

I cannot get webcamstudio to work Ubuntu 14.whatever 64bit standard LTS

sudo add-apt-repository ppa:webcamstudio/webcamstudio-dailybuilds
sudo apt-get update
sudo apt-get install webcamstudio

sudo chmod 666 /dev/video* if you are on ubuntu, did you install webcamstudio.dkms package also?
sudo apt-get install webcamstudio.dkms
Once installed you have to restart the system or type from terminal:
sudo modprobe webcamstudio

Auto Install v4l2loopback

First from a terminal, drop to a root shell

sudo su
If you havent installed kernel modules before with module-assistant run the following from a terminal

apt-get install module-assistant
m-a prepare
m-a update
Finally – download and install v4l2loopback

m-a a-i v4l2loopback
exit

Cracked it! (You’ve got to get the “Output” to look like my screenshot below)

  1. Tick V4lsloopback
  2. Tick Skycam
  3. Root prompt comes up
  4. (WS Audio Device?)
  5. WSVideo Device (0X0001)(1)

WebCamStudio Feeding VirtualCam settings 2015-05-25 12:59:46

Now run FireFox, Chrome doesn’t want to pick up the Virtual Webcam under Chrome on Ubuntu 64bit

WebCamStudio Feeding VirtualCam settings2 2015-05-25 12:59:46

Now spot the shitter – FireFox choose camera see the Virtual Device as WSVideoDevice(0x0000), this afternoon it had to be “Dummy Virtual Device(0x0000)” – which Virtual WebCam you nominate seems to be random compared to what you think WebCamStudio will be outputting…

Please don’t ask me about sound – I’ll assume it comes through. IE I couldn’t be bothered to test it, but thought these notes so far might help people out.

E&OE PLEASE twit me with any amends and tips @markcross

### CUT ###

Old school method which I got working after I initially gave up with webcamstudio

http://askubuntu.com/questions/54032/compiling-avld-on-11-04/54055#54055

Missing H.264 decoder
sudo apt-get install gstreamer1.0-libav gstreamer0.10-ffmpeg

http://askubuntu.com/questions/139239/fake-a-webcam-using-a-video-loopback-device
gst-launch-0.10 filesrc location=xxxxxx.mp4 ! decodebin ! v4l2sink device=/dev/video1

 

Find this article useful, here is my bitcoin address if it saved you going MAD or have a go with the changetip icons

bitcoin:    1FnkZ6EZBSSVuo7Y2JDNBBNuS5MahmWpPe

1FnkZ6EZBSSVuo7Y2JDNBBNuS5MahmWpPe

 

Other credits
http://superuser.com/questions/411897/using-desktop-as-fake-webcam-on-linux
https://launchpad.net/~webcamstudio/+archive/ubuntu/webcamstudio-dailybuilds
http://askubuntu.com/questions/54032/compiling-avld-on-11-04/54055#54055

The solution is not tax

2008 banking crisis bailout shite cost approximately £1.2 trillion

That government bit of entertainment gave every working person a £40,000 mortgage. And they say it’s hard to get a mortgage at the moment? Bollocks. If you want to extend the government balance sheet Mr & Mrs Tax Payer can apply any time – 100% available and 0% down!

How are YOU making your repayments out there?

Perspective WWI cost £22.3 trillion in today’s money and in 2014 the UK government paid the last £2 billion on the Chamberlain War Bonds.

Now the UK over that time had profound prosperity and periods of full employment, unemployment in my mind only became linked with Tebbitism. “GET ON your bike”- valid in the post war boom years but not relevant when he used it. Government around that time onwards were sold on the pointlessness of funding education in a service lead economy. The only manufacturing business worthy of state subsidy was the arms industry employing a lot of middle class well educated engineers, scientists and a lot of well paid blue collar workers.

The debt actually IS NOT the problem, its the ability to pay it back, majority employment on tax credits doesn’t pay the nations debt back, it will ONLY make the working class who pay taxes EXTREMELY poor.

Moan Chomsky – “As long as the general population is passive…

Someone on facebook posted a Moan Chomsky quote and I just went off on one this morning…

It’s not that the general population is passive or apathetic on purpose, even if they did see the world for the way it is. Then they would still behave the same. It’s called human greed.

If you were to explain to someone living in the UK: how credit export guarantees are used to kill people in third world counties we’ve never seen – with tax payers money. Arming Genocide in Rwanda.

How many people the military industrial complex employs on every industrial estate up and down the country? The UK is the FOURTH largest manufacturer of WEAPONS. The City of London is without doubt the money laundering capital of world bar none, drugs, arms deals, tax avoidance…

They would find it awful.

Show them “The 4 Horsemen Of The Apocalypse” documentary – link at the bottom.

Then explain that for the country to stop this behaviour, they’d have a lower standard of living.

Yes, that less money to spend, higher prices for everything, fewer holidays, fewer car upgrades. Less money to spend on their family. Less welfare state, lower pensions.

Humans breed more successfully than rats.
If we reduced are birthrate in the 1st world, that would significantly reduce global warming over a 20 year period.
Each person in the UK contributes 20 tonnes of CO2 per annum.
80% of landfill is disposable nappies.
Now the children of today have two+ children – you can see how this continues.
And for every person born into a Western society we buy more cheap shit from abroad manufactured without any pollution control. Our purchases make their economies boom, thery have yet more children BECAUSE of our consumerism of having yet more children. Third world starts getting more successful, next they see TV, want meat. ONE kilogram of beef takes 5000 litres to produce.

Meanwhile back at home we have no way of looking after old people in any dignified manner.
Or the means to support our NHS or education.

17% of all boys aged 16-19 years old are illiterate. Thus rendering 25-30% workforce unemployable. They ain’t NEVER EVER going to be tax payers people. WAKE UP YOU FUCKWITS.

Now at home – all YOU really care about is your family.

Noam Chomsky you can’t wake these people up if you Monty Python style put 20,000 volts up ’em.

It’s not that they are stupid or asleep. Liberalism gave them these choices.

“Crony capitalism” created the system we live in the UK

REAL – FREE MARKET CAPITALISM would put prices on the EARTH RESOURCES

Optimizing Ubuntu 14.04 for SSD usage or how not to abuse

On revamping a netbook from the grave, in fact just the only thing working about it is the motherboard! I decided to swap out the SSD in my Dell Studio 1737 which was in the second drive bay as my Ubuntu boot up.

So on ebay I found a Kingston S200 30GB SSD drive for £30 GBP. But for some reason instead of just popping it in, preparing a USB with Ubuntu and getting on with it I decided to do a bit of reading. To my horror I discovered I’ve been guilty of ssd abuse… For quite some time.

Read all the four source pages before attempting anything.

  • Create your swap partition on a conventional hard drive
  • Consider /var/log partition on a conventional hard drive
  • Consider /tmp partition on a conventional hard drive
  • Leave 7% of your EXT4 main Ubuntu partition unallocated at the end
  • With “noatime” in /etc/fstab, you disable the write action “access tim//e stamp”

An adapted line may look like this:

UUID=cf741928-1eb0-4253-91c6-cea28105dbef           /         ext4   noatime,errors=remount-ro      0       1

The cleaning action TRIM is necessary for the good performance of your SSD in the long run. Otherwise it’ll become very slow after some time.

/etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will “exit 0” on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
fstrim -v /
exit 0

  • Disable the superfluous weekly cron job for TRIM
    • sudo mv -v /etc/cron.weekly/fstrim /fstrim

Sources:
http://askubuntu.com/questions/1400/how-do-i-optimize-the-os-for-ssds
https://sites.google.com/site/easylinuxtipsproject/ssd#TOC-During-installation:-select-EXT4

Create a RAM disk to optimise Chrome and FireFox

Chrome
sudo mkdir -p /media/ramdisk
sudo vi /etc/fstab
tmpfs /media/ramdisk tmpfs rw,size=512M 0 0

double check chrome cache location:

ls -ls ~/.cache/google-chrome

rm -rf ~/.cache/google-chrome
ln -s /media/ramdisk/ ~/.cache/google-chrome

Firefox
type
about:config
in address bar create
browser.cache.disk.parent_directory
By right-clicking over the variables list
Right-click somewhere in the list and select “New > String”
For the name of the preference type or copy’n paste: browser.cache.disk.parent_directory
Enter the string value

/media/ramdisk/

Next locate the preference browser.cache.disk.enable, it must be set to true, if it is not, double-click on it to change its value
By default firefox stores cache in cacheme whereas chrome in Cache folder.

Restart firefox, you’ll find new folder in /media/ramdisk/

Note: for caching to work make sure browser.cache.disk.capacity is set to true

Sources:
http://askubuntu.com/questions/152868/how-do-i-make-a-ram-disk
http://www.linuxreaders.com/2011/01/firefox-chrome-cache-on-ram-drive-fedora-ubuntu.html

Maybe Cameron isn’t an idiot? But a closet property developer #CameronCryptoBollox

Well our Prime Minister David Cameron really set the tongues wagging for the 1% with a vague concern about the small issues surrounding the freedom of speech on Monday 12th January 2015. The alleged “I am clearly an idiot with mentally challenged advisers” was as follows:

“Are we going to allow a means of communication between people which even in extremis, with a signed warrant from the Home Secretary personally, that we cannot read?”

“No we must not. The first duty of any government is to keep our country and our people safe.”

You see, I live near to Totnes in the UK, you may have heard of it even Internationally, it’s the home of Transition Town. Every now and again we’ll get the odd strange planning application come up in the local paper. The Duke of Somerset to build on green belt, yarda yarda. Then there’s the plot at the end of Plymouth road by the Council offices, yarda yarda and again a lovely green field site previously owned by the Dartington Hall Trust. Going under concrete as I type.

So I reckon Cameron is maybe a closet property developer? If you follow a local planning issue in your town and I’m writing as a Brit, I’m sure it’ll be the same story in your own town where ever you live.

  • Property Developer wants to build 100 homes
  • Property Developer applies to build 500 homes
  • Local outrage
  • Local authorities grant permission for 150 with stipulation to provide help for local amenities
  • Property Developer horse trades and settles for 100 without helping out local authorities

Directive 2006/24/EC-Directive 2002/58/EC 

According to the directive, member states will have to store citizens’ telecommunications data for a minimum of 6 months and at most 24 months. Under the directive the police and security agencies will be able to request access to details such as IP address and time of use of every email, phone call and text message sent or received. A permission to access the information will be granted only by a court. On 8 April 2014, the Court of Justice of the European Union declared the Directive invalid in response to a case brought by Digital Rights Ireland against the Irish authorities and others. (Wikip)

Germany’s Merkel urges new EU law on data tracking
15th January

An EU directive on data retention was made invalid by a European Court of Justice (ECJ) ruling last April.

That 2006 directive opened up private communications data to police, but message content was still protected.

Ms Merkel’s statement contrasts with the uproar in Germany last year over US mass surveillance of internet traffic.

She was speaking in the lower house of parliament (Bundestag) about measures to prevent attacks like the killing of 17 people in Paris last week by Islamist gunmen. (BBC)

Have have ever met a poor property developer? Or builder?
So as we know that banning encryption is clearly a stupid planning request, but we can see that providing the requirement for several hundred million or possibly a billion pounds plus of IT expenditure would be of great benefit to the private IT sector. The very same people who are calling Cameron an idiot – I’m not so sure.