On Friday night I attended a talk by Sherry Turkle called Reclaiming
Conversation: The Power of Talk in a Digital Age . Here are my notes.
traceroute to www.stortinget.no (85.88.67.10), 30 hops max, 60 byte packets 1 uio-gw10.uio.no (129.240.202.1) 0.447 ms 0.486 ms 0.621 ms 2 uio-gw8.uio.no (129.240.24.229) 0.467 ms 0.578 ms 0.675 ms 3 oslo-gw1.uninett.no (128.39.65.17) 0.385 ms 0.373 ms 0.358 ms 4 te3-1-2.br1.fn3.as2116.net (193.156.90.3) 1.174 ms 1.172 ms 1.153 ms 5 he16-1-1.cr1.san110.as2116.net (195.0.244.234) 2.627 ms he16-1-1.cr2.oslosda310.as2116.net (195.0.244.48) 3.172 ms he16-1-1.cr1.san110.as2116.net (195.0.244.234) 2.857 ms 6 ae1.ar8.oslosda310.as2116.net (195.0.242.39) 0.662 ms 0.637 ms ae0.ar8.oslosda310.as2116.net (195.0.242.23) 0.622 ms 7 89.191.10.146 (89.191.10.146) 0.931 ms 0.917 ms 0.955 ms 8 * * * 9 * * * [...]This show the DNS names and IP addresses of (at least some of the) network equipment involved in getting the data traffic from me to the www.stortinget.no server, and how long it took in milliseconds for a package to reach the equipment and return to me. Three packages are sent, and some times the packages do not follow the same path. This is shown for hop 5, where three different IP addresses replied to the traceroute request. There are many ways to measure trace routes. Other good traceroute implementations I use are traceroute (using ICMP packages) mtr (can do both ICMP, UDP and TCP) and scapy (python library with ICMP, UDP, TCP traceroute and a lot of other capabilities). All of them are easily available in Debian. This time around, I wanted to know the geographic location of different route points, to visualize how visiting a web page spread information about the visit to a lot of servers around the globe. The background is that a web site today often will ask the browser to get from many servers the parts (for example HTML, JSON, fonts, JavaScript, CSS, video) required to display the content. This will leak information about the visit to those controlling these servers and anyone able to peek at the data traffic passing by (like your ISP, the ISPs backbone provider, FRA, GCHQ, NSA and others). Lets pick an example, the Norwegian parliament web site www.stortinget.no. It is read daily by all members of parliament and their staff, as well as political journalists, activits and many other citizens of Norway. A visit to the www.stortinget.no web site will ask your browser to contact 8 other servers: ajax.googleapis.com, insights.hotjar.com, script.hotjar.com, static.hotjar.com, stats.g.doubleclick.net, www.google-analytics.com, www.googletagmanager.com and www.netigate.se. I extracted this by asking PhantomJS to visit the Stortinget web page and tell me all the URLs PhantomJS downloaded to render the page (in HAR format using their netsniff example. I am very grateful to Gorm for showing me how to do this). My goal is to visualize network traces to all IP addresses behind these DNS names, do show where visitors personal information is spread when visiting the page.
When I had a look around for options, I could not find any good
free software tools to do this, and decided I needed my own traceroute
wrapper outputting KML based on locations looked up using GeoIP. KML
is easy to work with and easy to generate, and understood by several
of the GIS tools I have available. I got good help from by NUUG
colleague Anders Einar with this, and the result can be seen in
my
kmltraceroute git repository. Unfortunately, the quality of the
free GeoIP databases I could find (and the for-pay databases my
friends had access to) is not up to the task. The IP addresses of
central Internet infrastructure would typically be placed near the
controlling companies main office, and not where the router is really
located, as you can see from the
KML file I created using the GeoLite City dataset from MaxMind.
I also had a look at the visual traceroute graph created by
the scrapy project,
showing IP network ownership (aka AS owner) for the IP address in
question.
The
graph display a lot of useful information about the traceroute in SVG
format, and give a good indication on who control the network
equipment involved, but it do not include geolocation. This graph
make it possible to see the information is made available at least for
UNINETT, Catchcom, Stortinget, Nordunet, Google, Amazon, Telia, Level
3 Communications and NetDNA.
In the process, I came across the
web service GeoTraceroute by
Salim Gasmi. Its methology of combining guesses based on DNS names,
various location databases and finally use latecy times to rule out
candidate locations seemed to do a very good job of guessing correct
geolocation. But it could only do one trace at the time, did not have
a sensor in Norway and did not make the geolocations easily available
for postprocessing. So I contacted the developer and asked if he
would be willing to share the code (he refused until he had time to
clean it up), but he was interested in providing the geolocations in a
machine readable format, and willing to set up a sensor in Norway. So
since yesterday, it is possible to run traces from Norway in this
service thanks to a sensor node set up by
the NUUG assosiation, and get the
trace in KML format for further processing.
Here we can see a lot of trafic passes Sweden on its way to
Denmark, Germany, Holland and Ireland. Plenty of places where the
Snowden confirmations verified the traffic is read by various actors
without your best interest as their top priority.
Combining KML files is trivial using a text editor, so I could loop
over all the hosts behind the urls imported by www.stortinget.no and
ask for the KML file from GeoTraceroute, and create a combined KML
file with all the traces (unfortunately only one of the IP addresses
behind the DNS name is traced this time. To get them all, one would
have to request traces using IP number instead of DNS names from
GeoTraceroute). That might be the next step in this project.
Armed with these tools, I find it a lot easier to figure out where
the IP traffic moves and who control the boxes involved in moving it.
And every time the link crosses for example the Swedish border, we can
be sure Swedish Signal Intelligence (FRA) is listening, as GCHQ do in
Britain and NSA in USA and cables around the globe. (Hm, what should
we tell them? :) Keep that in mind if you ever send anything
unencrypted over the Internet.
PS: KML files are drawn using
the KML viewer from Ivan
Rublev, as it was less cluttered than the local Linux application
Marble. There are heaps of other options too.
As usual, if you use Bitcoin and want to show your support of my
activities, please send Bitcoin donations to my address
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b.
| Publisher: | Teach Yourself |
| Copyright: | 2015 |
| ISBN: | 1-4736-0885-6 |
| Format: | Kindle |
| Pages: | 289 |
Whilst I managed to read almost sixty books in 2016 here are ten of my favourites in no particular order.
Disappointments this year include Stewart Lee's Content Provider (nothing like his stand-up), Christopher Hitchens' And Yet (his best essays are already published) and Heinlein's Stranger in a Strange Land (great exposition, bizarre conclusion).
The worst book I finished, by far, was Mark Edward's Follow You Home.
Animal QC
Gary Bell, QC
Subtitled My Preposterous Life, this rags-to-riches story about a working-class boy turned eminent lawyer would be highly readable as a dry and factual account but I am compelled to include it here for its extremely entertaining style of writing.
Full of unsurprising quotes that take one unaware: would you really expect a now-Queen's Counsel to "heartily suggest that if you find yourself suffering from dysentery in foreign climes you do not medicate it with lobster thermidor and a bottle of Ecuadorian red?"
A real good yarn.
So You've Been Publically Shamed
Jon Ronson
The author was initially recommended to me by Brad but I believe I started out with the wrong book. In fact, I even had my doubts about this one, prematurely judging from the title that it was merely cashing-in on a fairly recent internet phenomenon like his more recent shallow take on Trump and the alt-Right but in the end I read Publically Shamed thrice in quick succession.
I would particularly endorse the audiobook version: Ronson's deadpan drawl suits his writing perfectly.
The Obstacle is the Way
Ryan Holiday
Whilst everyone else appears to be obligated to include Ryan's recent Ego is the Enemy in their Best of 2016 lists I was actually taken by his earlier "introduction by stealth" to stoic philosophy.
Certainly not your typical self-help book, this is "a manual to turn to in troubling times".
Returning to this work at least three times over the year even splashing out on the audiobook at some point I feel like I learned a great deal, although it is now difficult to pinpoint exactly what. Perhaps another read in 2017 is thus in order
Layer Cake
J.J. Connolly
To judge a book in comparison to the film is to do both a disservice, but reading the book of Layer Cake really underscored just how well the film played to the strengths of that medium.
All of the aspects that would not have worked had been carefully excised from the screenplay, ironically leaving more rewarding "layers" for readers attempting the book. A parallel adaption here might be No Country for Old Men - I would love to read (or write) a comparative essay between these two adaptions although McCarthy's novel is certainly the superior source material.
Lying
Sam Harris
I've absorbed a lot of Sam Harris's uvre this year in the form of his books but moreover via his compelling podcast. I'm especially fond of Waking Up on spirituality without religion and would rank that as my favourite work of his.
Lying is a comparatively short read, more of a long essay in fact, where he argues that we can radically simplify our lives by merely telling the truth in situations where others invariably lie. Whilst it would take a brave soul to adopt his approach his case is superlatively well-argued and a delight to read.
Letters from a Stoic
Seneca
Great pleasure is to be found not only in keeping up an old and established friendship but also in beginning and building up a new one. Reading this in a beautifully svelte hardback, I tackled a randomly-chosen letter per day rather than attempting to read it cover-to-cover. Breaking with a life-long tradition, I even decided to highlight sections in pen so I could return to them at ease. I hope it's not too hackneyed to claim I gained a lot from "building up" a relationship with this book. Alas, it is one of those books that is too easy to recommend given that it might make one appear wise and learned, but if you find yourself in a slump, either in life or in your reading habits, it certainly has my approval.
Solo: A James Bond Novel
William Boyd
I must have read all of the canonical Fleming novels as a teenager and Solo really rewards anyone who has done so. It would certainly punish anyone expecting a Goldeneye or at least be a little too foreign to be enjoyed.
Indeed, its really a pastiche of these originals, both in terms of the time period, general tone (Bond is more somber; more vulnerable) and in various obsessions of Fleming's writing, such as the overly-detailed description of the gambling and dining tables. In this universe, 007's restaurant expenses probably contributed signifcantly to the downfall of the British Empire, let alone his waistline.
Bond flicking through a ornithological book at one point was a cute touch
The Subtle Art of Not Giving A F*ck
Mark Manson
Certainly a wildcard to include here and not without its problems, The Subtle Art is a curious manifesto on how to approach life. Whilst Manson expouses an age-old philosophy of grounding yourself and ignoring the accumulation of flatscreen TVs, etc. he manages to do so in a fresh and provocative "21st-centry gonzo" style.
Highly entertaining, at one point the author posits an alternative superhero ("Disappointment Panda") that dishes out unsolicited and uncomfortable truths to strangers before simply walking away: "You know, if you make more money, that s not going to make your kids love you," or: "What you consider friendship is really just your constant attempts to impress people."
Ouch.
The Fourth Protocol
Frederick Forsyth
I have a crystal-clear memory from my childhood of watching a single scene from a film in the dead of night: Pierce Brosnan sets a nuclear device to detonate after he can get away but a double-crossing accomplice surreptitiously brings the timetable forward in order that the bomb also disposes of him
Anyway, at some point whilst reading The Fourth Protocol it dawned on me that this was that book. I might thus be giving the book more credit due to this highly satisfying connection but I think it stands alone as a superlative political page-turner and is still approachable outside the machinations of the Cold War.
The Partner
John Grisham
After indulging in a bit too much non-fiction and an aborted attempt at The Ministry of Fear, I turned to a few so-called lower-brow writers such as Jeffrey Archer, etc.
However, it was The Partner that turned out to be a real page-turner for somewhat undefinable reasons. Alas, it appears the rest of the author's output is unfortunately in the same vein (laywers, etc.) so I am hesitant to immediately begin others but judging from various lists online I am glad I approached this one first.
Shogun: The First Novel of the Asian saga
James Clavell
Despite its length, I simply couldn't resist returning to Shogun this year although it did fatigue me to the point that I have still yet to commence on its sequel, Tai-Pan.
Like any good musical composition, one is always rewarded by returning to a book and I took great delight in uncovering more symbolism throughout (such as noticing that one of the first words Blackthorne learns in Japanese is "truth") but also really savouring the tragic arcs that run throughout the novel, some beautiful phrases ("The day seemed to lose its warmth ") and its wistful themes of inevitability and karma.
| Series: | The Belgariad #1 |
| Publisher: | Del Rey |
| Copyright: | April 1982 |
| Printing: | August 1990 |
| ISBN: | 0-345-33551-1 |
| Format: | Mass market |
| Pages: | 258 |
unattended-upgrades
package within the images.
The unattended-upgrades package contains a Python program that
automatically performs any pending upgrade and is designed to run
unattended. It is roughly the equivalent of doing
apt-get update; apt-get upgrade in a cron job, but has special code to
handle error conditions, warn about reboots, and selectively upgrade
packages. The package was originally written for Ubuntu by Michael Vogt,
a longtime Debian developer and Canonical employee.
Since there was a concern that Debian cloud images would be different
from normal Debian installs, McIntyre suggested installing
unattended-upgrades by default on all Debian installs, so that people
have a consistent experience inside and outside of the cloud. The
discussion that followed was interesting as it brought up key issues one
would have when deploying automated upgrade tools, outlining both the
benefits and downsides to such systems.
policy-rc.d
mechanism
to disable service restarts on certain packages out of the box.
unattended-upgrades also features a way to disable upgrades on
specific packages that administrators would consider too sensitive to
restart automatically and will want to schedule during maintenance
windows.
Reboots were another issue discussed: how and when to deploy kernel
upgrades? Automating kernel upgrades may mean data loss if the reboot
happens during a critical operation. On Debian systems, the kernel
upgrade mechanisms already provide a /var/run/reboot-required flag
file that tools can monitor to notify users of the required reboot. For
example, some desktop environments will popup a warning prompting users
to reboot when the file exists. Debian doesn't currently
feature an equivalent warning for command-line operation: Vogt
suggested
that the warning could be shown along with the usual /etc/motd
announcement.
The ideal solution here, of course, is reboot-less kernel upgrades,
which is also known as "live patching" the kernel. Unfortunately, this
area is still in development in the kernel (as was previously discussed
here). Canonical deployed the
feature for the Ubuntu 16.04 LTS release, but Debian doesn't yet have
such capability, since it requires extra infrastructure among other
issues.
Furthermore, system reboots are only one part of the problem. Currently,
upgrading packages only replaces the code and restarts the primary
service shipped with a given package. On library upgrades, however,
dependent services may not necessarily notice and will keep running with
older, possibly vulnerable, libraries. While libc6, in Debian, has
special code to restart dependent services, other libraries like
libssl do not notify dependent services that they need to restart to
benefit from potentially critical security fixes.
One solution to this is the needrestart
package which inspects all
running processes and restarts services as necessary. It also covers
interpreted code, specifically Ruby, Python, and Perl. In my experience,
however, it can take up to a minute to inspect all processes, which
degrades the interactivity of the usually satisfying apt-get install
process. Nevertheless, it seems like needrestart is a key component of
a properly deployed automated upgrade system.
The ecosystem-wide security benefits of having Debian systems keep up to date with security updates by default overweigh any inconvenience of having to tweak system configuration on hosts where the automatic updates are problematic.One could compare automated upgrades with backups: if they are not automated, they do not exist and you will run into trouble without them. (Wirzenius, coincidentally, also works on the Obnam backup software.) Another benefit that may be less obvious is the acceleration of the feedback loop between developers and users: developers like to know quickly when an update creates a regression. Automation does create the risk of a bad update affecting more users, but this issue is already present, to a lesser extent, with manual updates. And the same solution applies: have a staging area for security upgrades, the same way updates to Debian stable are first proposed before shipping a point release. This doesn't have to be limited to stable security updates either: more adventurous users could follow rolling distributions like Debian testing or unstable with unattended upgrades as well, with all the risks and benefits that implies.
sources.list then:
# apt-get update && apt-get dist-upgrade
But the actual upgrade process is really much more complex. If you run
into problems with the above commands, you will quickly learn that you
should have followed the release
notes, a
whopping 20,000-word, ten-section document that outlines all the gory
details of the release. This is a real issue for large deployments and
for users unfamiliar with the command line.
The solutions most administrators seem to use right now is to roll their
own automated upgrade process. For example, the Debian.org system
administrators have their own
process for the
"jessie" (8.0) upgrade. I have also written a
specification of how major
upgrades could be automated that attempts to take into account the wide
variety of corner cases that occur during major upgrades, but it is
currently at the design stage. Therefore, this problem space is
generally unaddressed in Debian: Ubuntu does have a do-release-upgrade
command
but it is Ubuntu-specific and would need significant
changes
in order to work in Debian.
unattended-upgrades or
Landscape, a proprietary
system-management service from Canonical. According to Vogt, the company
supports both projects equally as they differ in scope:
unattended-upgrades just upgrades packages while Landscape aims at
maintaining thousands of machines and handles user management, release
upgrades, statistics, and aggregation.
It appears that Debian will enable unattended-upgrades on the images
built for the cloud by default. For regular installs, the consensus
that has
emerged
points at the Debian installer prompting users to ask if they want to
disable the feature as well. One reason why this was not enabled
before is that unattended-upgrades had serious bugs in the past that
made it less attractive. For example, it would simply fail to follow
security
updates, a
major bug that was fortunately promptly fixed by the maintainer.
In any case, it is important to distribute security and major upgrades
on Debian machines in a timely manner. In my long experience in
professionally administering Unix server farms, I have found the upgrade
work to be a critical but time-consuming part of my work. During that
time, I successfully deployed an automated upgrade system all the way
back to Debian woody, using the simpler
cron-apt. This approach is,
unfortunately, a little brittle and non-standard; it doesn't address the
need of automating major upgrades, for which I had to revert to tools
like cluster-ssh or more
specialized configuration management tools like
Puppet. I therefore encourage any effort towards
improving that process for the whole community.
More information about the configuration of unattended-upgrades can be
found in the Ubuntu
documentation
or the Debian wiki.
Note: this article first appeared in the Linux Weekly News.
startproject,
startapp, runserver)aip flag which,
according to GA documentation, makes "the IP address of the sender
'anonymized'". It is not quite clear how that is done at Google and,
given that it is a proprietary platform, there is no way to verify
that claim. The proposal says it means that "we can't see, and Google
Analytics doesn't store, your actual IP". But that is not actually
what Google does: GA stores IP addresses, the documentation just says
they are anonymized, without explaining how.
GA is presented as a trade-off, since "Google's track record indicates
that they don't value privacy nearly as high" as the DSF does. The
alternative, deploying its own analytics software, was presented as
making sustainability problems worse. According to the proposal, Google
"can't track Django users. [...] The only thing Google could do would be
to lie about anonymizing IP addresses, and attempt to match users based
on their IPs".
The truth is that we don't actually know what Google means when it
"anonymizes" data: Jannis Leidel, a Django team member, commented
that "Google has previously been subjected to secret US court orders
and was required to collaborate in mass surveillance conducted by US
intelligence services" that limit even Google's capacity of ensuring
its users' anonymity. Leidel also argued that the legal framework of
the US may not apply elsewhere in the world: "for example the strict
German (and by extension EU) privacy laws would exclude the automatic
opt-in as a lawful option".
Furthermore, the proposal claims that "if we discovered Google was
lying about this, we'd obviously stop using them immediately", but it
is unclear exactly how this could be implemented if the software was
already deployed. There are also concerns that an
implementation could block normal operation, especially in countries
(like China) where Google itself may be blocked. Finally, some
expressed concerns that the information could constitute a
security problem, since it would unduly expose the version number of
Django that is running.
Software in Debian should not communicate over the network except: in order to, and as necessary to, perform their function[...]; or for other purposes with explicit permission from the user.In other words, opt-in only, period. Jackson explained that "when we originally wrote the core of the policy documents, the DFSG [Debian Free Software Guidelines], the SC [Social Contract], and so on, no-one would have considered this behaviour acceptable", which explains why no explicit formal policy has been adopted yet in the Debian project. One of the concerns with opt-out systems (or even prompts that default to opt-in) was well explained back then by Debian developer Bas Wijnen:
It very much resembles having to click through a license for every package you install. One of the nice things about Debian is that the user doesn't need to worry about such things: Debian makes sure things are fine.One could argue that Debian has its own tracking systems. For example, by default, Debian will "phone home" through the APT update system (though it only reports the packages requested). However, this is currently not automated by default, although there are plans to do so soon. Furthermore, Debian members do not consider APT as tracking, because it needs to connect to the network to accomplish its primary function. Since there are multiple distributed mirrors (which the user gets to choose when installing), the risk of surveillance and tracking is also greatly reduced. A better parallel could be drawn with Debian's popcon system, which actually tracks Debian installations, including package lists. But as Barry Warsaw pointed out in that discussion, "popcon is 'opt-in' and [...] the overwhelming majority in Debian is in favour of it in contrast to 'opt-out'". It should be noted that popcon, while opt-in,
I don't believe the increase we might get in the number of reports by making it harder to opt-out, can be worth the ill-will generated for people who might feel the reporting was "sneaked" upon them, or even those who feel they were nagged into participation rather than choosing to participate.Other options may also include gathering metrics in
pip or PyPI,
which was proposed by Donald Stufft. Leidel also proposed
that the system could ask to opt-in only after a few times the
commands are called.
It is encouraging to see that a community can discuss such issues
without heating up too much and shows great maturity for the Django
project. Every free-software project may be confronted with funding and
sustainability issues. Django seems to be trying to address this in a
transparent way. The project is willing to engage with the whole
spectrum of the community, from the top leaders to downstream
distributors, including individual developers. This practice should
serve as a model, if not of how to do funding or tracking, at least of
how to discuss those issues productively.
Everyone seems to agree the point is not to surveil users, but improve
the software. As Lars Wirzenius, a Debian developer,
commented: "it's a very sad situation if free
software projects have to compromise on privacy to get
funded". Hopefully, Django will be able to improve its funding without
compromising its principles.
Note: this article first appeared in the Linux Weekly News.
Confession time first I am not a frequent flyer at all. My first flight was in early late 2006. It was a 2 hour flight from Bombay (BOM) to Bengaluru (formerly Bangalore, BLG) . I still remember the trepidation, the nervousness and excitement the first time I took to air. I still remember the flight very vividly,
It was a typical humid day for Bombay/Mumbai and we (me and a friend) had gone to Sahar (the domestic airport) to take the flight in the evening. Before starting the sky had turned golden-orange and I was wondering how I would feel once I would be in air.We started at around 20:00 hours in the evening and as it was a clear night were able to see the Queen s necklace (Marine Drive) in all her glory.
The photographs on the wikipedia page don t really do justice to how beautiful the whole boulevard looks at night, especially how it looks from up there. While we were seeing, it seemed the pilot had actually banked at 45 degrees angle so we can have the best view of the necklace OR maybe the pilot wanted to take a photo OR ME being in overdrive (like Robin Williams, the Russian immigrant in Moscow on the Hudson experiences the first time he goes to the mall ;))
In either way, this would be an experience I would never forget till the rest of my life. I remember I didn t move an inch (even to go the loo) as I didn t want to let go of the whole experience. While I came back after 3-4 days, I still remember re-experiencing/re-imagining the flights for a whole month each time I went to sleep.
While I can t say it has become routinised, but have been lucky to have the opportunity to fly domestic around the country primarily for work. After the initial romanticism wears off, you try and understand the various aspects of the flight which are happening around you.
These experiences are what lead to file/share today s blog post. Yesterday, Ms. Mamata Banerjee, one of the leaders of the Opposition cried wolf because the Aircraft was circling the Airport. Because she is the Chief Minister she feels she should have got precedent or at least that seems to be the way the story unfolded on TV.
I have been about 15-20 times on flight in the last decade for work or leisure. Almost all the flights I have been, it has been routine that the flights fly around the Airport for 15-20 minutes before landing. This is routine . I have seen Airlines being stacked (remember the scene from Die Hard 2 where Holly Mclane, John Mclane s wife looks at different aircraft at different altitudes from her window seat) this is what an Airport has to do when it doesn t have enough runaways. In fact just read few days back MIAL is going for an emergency expansion as they weren t expecting as many passengers as they did this year as well as last. In fact the same day there was a near-miss between two aircraft in Mumbai airport itself. Because of Ms. Mamata s belligerence, this story didn t even get a mention in the TV mainstream media.
The point I wanna underscore is that this is a fact of life and not just in India, world-over it seems hubs are being busier than ever, for instance Heathrow has been also a busy bee and they will to rework air operations as per a recent article .
In India, Kolkata is also one of the busier airports . If anything, I hope it teaches her the issues that plague most Indian airports and she works with the Government in Center so the Airport can expand more. They just got a new terminal three years back.
It is for these issues that the Indian Government has come with the Regional Connectivity Scheme .
Lastly, a bit of welcome news to people thinking to visit India, the Govt. of the day is facilitating easier visa norms to increase tourism and trade to India. Hope this is beneficial to all and any Debian Developers who wanna come visit India
I do hope that we also do get reciprocity from those countries as well.
/> ls
o- / ......................................................................................................................... [...]
o- backstores .............................................................................................................. [...]
o- fileio ................................................................................................... [0 Storage Object]
o- iblock .................................................................................................. [4 Storage Objects]
o- CENTOS ................................................................................................. [/dev/vdd, in use]
o- SAN1 ................................................................................................... [/dev/vdb, in use]
o- SAN2 ................................................................................................... [/dev/vdc, in use]
o- SANROOT .............................................. [/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0, in use]
o- pscsi .................................................................................................... [0 Storage Object]
o- rd_mcp ................................................................................................... [0 Storage Object]
o- ib_srpt ........................................................................................................... [0 Targets]
o- iscsi ............................................................................................................. [3 Targets]
o- iqn.1994-05.com.redhat:23d8eb7fa1fc ................................................................................. [1 TPG]
o- tpg1 ............................................................................................................ [enabled]
o- acls ............................................................................................................ [1 ACL]
o- iqn.1994-05.com.redhat:23d8eb7fa1fc .................................................................... [1 Mapped LUN]
o- mapped_lun0 ............................................................................................. [lun0 (rw)]
o- luns ............................................................................................................ [1 LUN]
o- lun0 ....................................................................................... [iblock/CENTOS (/dev/vdd)]
o- portals ..................................................................................................... [4 Portals]
o- 172.16.20.40:3260 ................................................................................. [OK, iser disabled]
o- 172.16.20.41:3260 ................................................................................. [OK, iser disabled]
o- 172.16.20.42:3260 ................................................................................. [OK, iser disabled]
o- 172.16.20.43:3260 ................................................................................. [OK, iser disabled]
o- iqn.2003-01.org.linux-iscsi.debian.sanboot .......................................................................... [1 TPG]
o- tpg1 ............................................................................................................ [enabled]
o- acls ............................................................................................................ [1 ACL]
o- iqn.2005-03.org.open-iscsi:fd2bc2f4652a-sanboot ........................................................ [1 Mapped LUN]
o- mapped_lun0 ............................................................................................. [lun0 (rw)]
o- luns ............................................................................................................ [1 LUN]
o- lun0 .................................... [iblock/SANROOT (/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0)]
o- portals ..................................................................................................... [4 Portals]
o- 172.16.20.40:3260 ................................................................................. [OK, iser disabled]
o- 172.16.20.41:3260 ................................................................................. [OK, iser disabled]
o- 172.16.20.42:3260 ................................................................................. [OK, iser disabled]
o- 172.16.20.43:3260 ................................................................................. [OK, iser disabled]
o- iqn.2003-01.org.linux-iscsi.debian.x8664 ............................................................................ [1 TPG]
o- tpg1 ............................................................................................................ [enabled]
o- acls ............................................................................................................ [1 ACL]
o- iqn.1993-08.org.debian:01:2972f6b5fc7 ................................................................. [2 Mapped LUNs]
o- mapped_lun0 ............................................................................................. [lun0 (rw)]
o- mapped_lun1 ............................................................................................. [lun1 (rw)]
o- luns ........................................................................................................... [2 LUNs]
o- lun0 ......................................................................................... [iblock/SAN1 (/dev/vdb)]
o- lun1 ......................................................................................... [iblock/SAN2 (/dev/vdc)]
o- portals ..................................................................................................... [4 Portals]
o- 172.16.20.40:3260 ................................................................................. [OK, iser disabled]
o- 172.16.20.41:3260 ................................................................................. [OK, iser disabled]
o- 172.16.20.42:3260 ................................................................................. [OK, iser disabled]
o- 172.16.20.43:3260 ................................................................................. [OK, iser disabled]
o- loopback .......................................................................................................... [0 Targets]
o- qla2xxx ........................................................................................................... [0 Targets]
o- tcm_fc ............................................................................................................ [0 Targets]
o- vhost ............................................................................................................. [0 Targets]
/>
/> ls
o- / ......................................................................................................................... [...]
o- backstores .............................................................................................................. [...]
o- block .................................................................................................. [Storage Objects: 4]
o- CENTOS ........................................................................... [/dev/vdd (2.0GiB) write-thru activated]
o- SAN1 ............................................................................. [/dev/vdb (1.0GiB) write-thru activated]
o- SAN2 ............................................................................. [/dev/vdc (1.0GiB) write-thru activated]
o- SANROOT ........................ [/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0 (8.0GiB) write-thru activated]
o- fileio ................................................................................................. [Storage Objects: 0]
o- pscsi .................................................................................................. [Storage Objects: 0]
o- ramdisk ................................................................................................ [Storage Objects: 0]
o- iscsi ............................................................................................................ [Targets: 3]
o- iqn.1994-05.com.redhat:23d8eb7fa1fc ............................................................................... [TPGs: 1]
o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
o- acls .......................................................................................................... [ACLs: 1]
o- iqn.1994-05.com.redhat:23d8eb7fa1fc .................................................................. [Mapped LUNs: 1]
o- mapped_lun0 ................................................................................ [lun0 block/CENTOS (rw)]
o- luns .......................................................................................................... [LUNs: 1]
o- lun0 ........................................................................................ [block/CENTOS (/dev/vdd)]
o- portals .................................................................................................... [Portals: 4]
o- 172.16.20.40:3260 ................................................................................................ [OK]
o- 172.16.20.41:3260 ................................................................................................ [OK]
o- 172.16.20.42:3260 ................................................................................................ [OK]
o- 172.16.20.43:3260 ................................................................................................ [OK]
o- iqn.2003-01.org.linux-iscsi.debian.sanboot ........................................................................ [TPGs: 1]
o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
o- acls .......................................................................................................... [ACLs: 1]
o- iqn.2005-03.org.open-iscsi:fd2bc2f4652a-sanboot ...................................................... [Mapped LUNs: 1]
o- mapped_lun0 ............................................................................... [lun0 block/SANROOT (rw)]
o- luns .......................................................................................................... [LUNs: 1]
o- lun0 ..................................... [block/SANROOT (/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0)]
o- portals .................................................................................................... [Portals: 4]
o- 172.16.20.40:3260 ................................................................................................ [OK]
o- 172.16.20.41:3260 ................................................................................................ [OK]
o- 172.16.20.42:3260 ................................................................................................ [OK]
o- 172.16.20.43:3260 ................................................................................................ [OK]
o- iqn.2003-01.org.linux-iscsi.debian.x8664 .......................................................................... [TPGs: 1]
o- tpg1 ............................................................................................... [no-gen-acls, no-auth]
o- acls .......................................................................................................... [ACLs: 1]
o- iqn.1993-08.org.debian:01:2972f6b5fc7 ................................................................ [Mapped LUNs: 2]
o- mapped_lun0 .................................................................................. [lun0 block/SAN1 (rw)]
o- mapped_lun1 .................................................................................. [lun1 block/SAN2 (rw)]
o- luns .......................................................................................................... [LUNs: 2]
o- lun0 .......................................................................................... [block/SAN1 (/dev/vdb)]
o- lun1 .......................................................................................... [block/SAN2 (/dev/vdc)]
o- portals .................................................................................................... [Portals: 4]
o- 172.16.20.40:3260 ................................................................................................ [OK]
o- 172.16.20.41:3260 ................................................................................................ [OK]
o- 172.16.20.42:3260 ................................................................................................ [OK]
o- 172.16.20.43:3260 ................................................................................................ [OK]
o- loopback ......................................................................................................... [Targets: 0]
o- vhost ............................................................................................................ [Targets: 0]
/>
I am a incorrigibly in picking non-mainstream, open smartphones, and then struggling hard. Back then in 2008, I tried to use the OpenMoko FreeRunner, but eventually gave up because of hardware glitches and reverted to my good old Siemens S35. It was not that I would not be willing to put up with inconveniences, but as soon as it makes live more difficult for the people I communicate with, it becomes hard to sustain.
Two years ago I tried again, and got myself a Jolla phone, running Sailfish OS. Things are much nicer now: The hardware is mature, battery live is good, and the Android compatibility layer enables me to run many important apps that are hard to replace, especially the Deutsche Bahn Navigator and various messengers, namely Telegram, Facebook Messenger, Threema and GroupMe.
Some apps that require Google Play Services, which provides a bunch of common tasks and usually comes with the Google Play store would not run on my phone, as Google Play is not supported on Sailfish OS. So far, the most annoying ones of that sort were Uber and Lyft, making me pay for expensive taxis when others would ride cheaper, but I can live with that. I tried to install Google Play Services from shady sources, but it would regularly crash.
/system/framework/framework.jar file, put it into the input folder of this project, run python main.py, select 2, and copy the framework.jar from output/ back. Great.
foo.odex in the Android system folder, runs some tool on them to create a classes.dex file, and adds that to the corresponding foo.jar or foo.apk file, copies this back to the phone and deletes the foo.odex file.
The annoying this is that one does not only have to do it for framework.jar in order to please tingle, because if one does it to one odex file, one has to do to all! It seems that for people using Windows, the Universal Deodexer V5 seems to be a convenient tool, but I had to go more manually.
So I first fetched smali , compiled it using ./gradlew build. Then I fetched the folders /opt/alien/system/framework and /opt/alien/system/app from the phone (e.g. using scp). Keep a backup of these in case something breaks. Then I ran these commands (disclaimer: I fetched these from my bash history and slightly cleaned them up. This is not a fire-and-forget script! Use it when you know what it and you are doing):
cd framework
for file in *.odex
do
java -jar ~/build/smali/baksmali/build/libs/baksmali.jar deodex $file -o out
java -jar ~/build/smali/smali/build/libs/smali.jar a out -o classes.dex
zip -u $(basename $file .odex).jar classes.dex
rm -rf out classes.dex $file
done
cd ..
cd app
for file in *.odex
do
java -jar ~/build/smali/baksmali/build/libs/baksmali.jar deodex -d ../framework $file -o out
java -jar ~/build/smali/smali/build/libs/smali.jar a out -o classes.dex
zip -u $(basename $file .odex).apk classes.dex
rm -rf out classes.dex $file
done
cd ..
The resulting framework.jar can now be patched with tingle:
mv framework/framework.jar ~/build/tingle/input
cd ~/build/tingle
./main.py
# select 2
cd -
mv ~/build/tingle/output/framework.jar framework/framework.jar
Now I copy these framework and app folders back on my phone, and restart Dalvik:
devel-su systemctl restart aliendalvik.service
It might start a bit slower than usually, but eventually, all the Android apps should work as before.
The final bit that was missing in my case was that I had to reinstall Signal: If it is installed before microG is installed, it does not get permission to use GCM, and when it tries (while registering: After generating the keys) it just crashes. I copied /data/data/org.thoughtcrime.secretsms/ before removing Signal and moved it back after (with cp -a to preserve permissions) so that I could keep my history.
And now, it seems, vanilla Signal is working just fine on my Jolla phone!
I don't often write on this blog, and when I do, it's either tech related,
or light life stuff.
Over the next few weeks, it's going to get a lot more political. If you
currently follow this blog for its technical content, you may be tempted to
tune out. I would encourage you to stay and listen. I'm passionate about
the technology that I work on; but the greatest problems facing our world
today are not ones that will be solved with software.
American democracy is in bad shape, and it's because of what we're doing to
it. This is not a problem of the Right or of the Left; it is not a problem
that began with the election of Donald Trump, and it's not a problem that
will go away at the end of his term. It is partly a structural problem with
the way our elections work, but more than that it's a problem of how we're
splitting into separate tribes, isolating ourselves from those who don't
agree with us.
As Russ Allbery
wrote the morning after the election, everything about how we organize
ourselves online today - and how we let Facebook and Twitter organize us -
leads us to surround ourselves with people who already think the same way we
do. That leaves all of us with huge blind spots for other people in our
country, and it stifles the free exchange of ideas that is so essential for
a healthy democracy. We need leaders who will work to make America a better
and more just place for all our neighbors, not just a two-party system
that plays tug-of-war using two different sets of voters that feel shut out.
And the way we organize ourselves today (online and off) does not let us
recognize those leaders.
There's a lot of talk now about Facebook changing how it decides what to
show people; and maybe they can manage to help everyone's online experience
be a little less of a bubble. But part of the change needs to come from us.
We need to be willing to engage, civilly, with people whose perspective is
different from ours, and make the effort to understand where the other is
coming from.
So for the next few weeks, I'm going to talk. And I'm going to listen.
I have no unique qualifications to speak about the country's issues. But I
do have a perspective of my own, which might be different enough from yours
to be useful. I was born and raised in Iowa, and graduated from college
there. This election cycle, I learned that Iowa holds the distinction of
being the state with the lowest percentage of college-educated whites. I'm
part of that statistic, because a few years after graduating I moved to
Portland, Oregon - a place that's notoriously so far to the left of what we
think of as the middle, that it actually has anarchists who would
shamefully use a peaceful protest as cover to commit property
crime.
So I know a few things about the people in each state, that I think the
other should hear.
I'm also that rarest of creatures, a Portlander who goes to church
(Catholic). But I still choose as my neighbors the weird, wonderful, and
welcoming community that we have here, whatever Glenn
Beck might think.
I have a son, and I worry about what kind of world he'll grow up to live in.
I work in software, which means I'm doing a lot better than a lot of people
in the country right now; it also means that from where I sit, I see trends
already in progress that will have an effect on the working class and the
middle class that makes NAFTA look like a gnat's fart in comparison. And so
I worry for what kind of world we will all live in, if we don't make some
changes fast.
Let's have a conversation. No comments enabled on this blog, but you can
find me on G+ or on
Facebook.
I have just released version 1.20 of Obnam, my backup program.
It's been nine months since the previous release, and that's a long
time: I've had an exciting year, and not entirely in a good way.
Unfortuntely that's eaten up a lot of my free time and enthusiasm for
my hobby projects.
See below for a snippet of NEWS, with a summary of the
user-visible changes. A lot of the effort has gone into improving
FORMAT GREEN ALBATROSS, but that isn't documented in the NEWS
file.
I've received patches and actionable bug reports from a number of
people, and I'm grateful for those. I try to credit them by name in
the NEWS file.
Obnam NEWS
This file summarizes changes between releases of Obnam.
NOTE: Obnam has an EXPERIMENTAL repository format under
development, called green-albatross-20160813. It is NOT meant
for real use. It is likely to change in incompatible ways without
warning. DO NOT USE it unless you're willing to lose your backup.
Version 1.20, released 2016-10-29
green-albatross is renamed to
green-albatross-20160813 and will henceforth be renamed every time
there's a change, to avoid confusing Lars because of backwards
incompatibilities. When it reaches stability and the on-disk format
is frozen, it'll be renamed back to a date-less version./dev/urandom instead of
/dev/random. The goal is to make it less likely that Obnam stops
at the key generation stage on machines with little entropy. Set
weak-random = no in your configuration to override this.obnam forget so that if there is nothing to
do, it doesn't even try to connect to the repository.--one-file-system to work for bind mounts.
It only works for bind mounts that exist at the time when Obnam
starts, however. Also, /proc/mounts must be an accurate list of
mount points.get_clientgeneration_ids).obnam restore to require a target set with
--to. Jonathan Dowland reported the problem.obnam list-errors so that it doesn't crash on
error classes that only exist to make the exception hierarchy
neater, such as EncryptionError. Bug reported by Rik Theys.obnam kdirstat and its handling of FIFO
sockets.| Publisher: | Basic Books |
| Copyright: | 2013 |
| ISBN: | 0-465-05065-4 |
| Format: | Trade paperback |
| Pages: | 298 |
The Referer header has
been a part of the web for a long time. Websites rely on it for a few
different purposes (e.g. analytics, ads, CSRF protection) but it can be
quite problematic from a privacy perspective.
Thankfully, there are now tools in Firefox to help users and developers
mitigate some of these problems.
Referer header to all outgoing HTTP
requests, revealing to the server on the other end the URL of the page you
were on when you placed the request. For example, it tells the server where
you were when you followed a link to that site, or what page you
were on when you requested an image or a script. There are, however, a few
limitations to this simplified explanation.
First of all, by default, browsers won't send a referrer if you place a
request from an HTTPS page to an HTTP page. This would reveal potentially
confidential information (such as the URL path and query string which could
contain session tokens or other secret identifiers) from a secure page over
an insecure HTTP channel. Firefox will however include a Referer header in
HTTPS to HTTPS transitions unless network.http.sendSecureXSiteReferrer
(removed in Firefox 52) is set to false in about:config.
Secondly, using the new
Referrer Policy specification web
developers can override the default behaviour for their pages, including on
a per-element basis. This can be used both to increase or reduce the amount
of information present in the referrer.
Referer header has been around for so long, a number of
techniques rely on it.
Armed with the Referer information, analytics tools can figure out:
Referer is useful is as a mitigation against
cross-site request forgeries.
In that case, a website receiving a form submission can reject that form
submission if the request originated from a different website.
It's worth pointing out that this CSRF mitigation might be better implemented
via a separate header that could
be restricted to particularly dangerous requests (i.e. POST and DELETE
requests) and only include the information required for that security check
(i.e. the origin).
privacy.trackingprotection.enabled to true in about:config,
which will prevent all network connections to known trackers, users can
control when the Referer header is sent by setting
network.http.sendRefererHeader to:
0 to never send the header1 to send the header only when clicking on links and similar elements2 (default) to send the header on all requests (e.g. images, links, etc.)network.http.referer.trimmingPolicy
to:
0 (default) to send the full URL1 to send the URL without its query string2 to only send the scheme, host and portnetwork.http.referer.XOriginTrimmingPolicy option (added in
Firefox 52) to only restrict the contents of referrers attached to
cross-origin requests.
Site owners can opt to share less information with other sites, but they
can't share any more than what the user trimming policies allow.
Another approach is to disable the Referer when doing cross-origin
requests (from one site to another). The
network.http.referer.XOriginPolicy preference can be set to:
0 (default) to send the referrer in all cases1 to send a referrer only when the base domains are the same2 to send a referrer only when the full hostnames matchnetwork.http.sendRefererHeader = 0,
you will most likely run into problems on a number of sites, for
example:
network.http.referer.spoofSource to true, an advanced setting
which always sends the destination URL as the referrer, thereby not leaking
anything about the original page.
Unfortunately, the last two are examples of the kind of breakage that can
only be fixed through a whitelist (an approach supported by the smart
referer add-on) or
by temporarily using a different browser
profile.
network.http.referer.XOriginPolicy = 2
or to sites which belong to the same organization (i.e. same
ETLD/public suffix)
using:
network.http.referer.XOriginPolicy = 1
This prevent leaks to third-parties while giving websites all of the
information that they can already see in their own server logs.
On the other hand, if you prefer a weaker but more compatible solution, you
can trim cross-origin referrers down to just the scheme, hostname and port:
network.http.referer.XOriginTrimmingPolicy = 2
I have not yet found user-visible breakage using this last configuration.
Let me know if you find any!
Next.