Patrick Matth i: Package updates from the middle of october
otrs2 3.1.11+dfsg1-1 is just accepted in experimental and I also backported the patch to the Wheezy version with 3.1.7+dfsg1-6.
In case you tried to use git-buildpackage and wanted to use cowbuilder as a builder, you might have ran into the errorsudo: sorry, you are not allowed to preserve the environment
Defaults env_keep += HOME
Cmnd_Alias PBUILDERS = /usr/sbin/pbuilder, /usr/sbin/cowbuilder
%pack ALL=PBUILDERS
Defaults! PBUILDERS setenv
I have a Macbook3,1 with the following SATA controller:
00:1f.2 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 03)
This chip can work either in AHCI or IDE mode. Even though (in numbers) AHCI and IDE should have similar performance, I have found that AHCI mode is much better. Specially when the disk is under heavy siege by more than one application.
The catch is that Macbooks turn off AHCI when booting in BIOS mode, which is the mode I use for GNU/Linux. I understand this also affects Windows.
Pictured: a girl after enabling AHCI on her Linux Macbook
After some googling I found this post that explains how to activate AHCI mode using GRUB2.
The fix is to just add a setpci call on your GRUB configuration. To be safe you can test it by going into command line mode in GRUB, and doing something like this:
> lspci
You can add this to your GRUB configuration, and avoid losing it on upgrades, by adding a script like this to /etc/grub.d/:
(check for the ID for IDE mode, in my case 8086:2828)
> setpci -d 8086:2828 90.b=40
> lspci
(The 2828 ID is now gone, replaced by 8086:2829, AHCI/SATA mode)
I understand this is also relevant for newer Macbooks and standard PC hardware, so you might want to do some googling. The easy way to know if you are on the right mode is to run
#!/bin/sh
set -e
## Enable SATA (AHCI) mode on macbook 3,1
echo "setpci -d 8086:2828 90.b=40"
lspci -nn on a regular terminal (not GRUB) and see if you have a SATA controller that is in the wrong mode.
# apt-get install nut
$ tar xzvf nut-trunk-r3751.tar.gz
# apt-get install libnss3-dev
./configure --without-all --with-nss \
--prefix=/ --sysconfdir=/etc/nut \
--with-statepath=/var/run/nut \
--with-altpidpath=/var/run/nut \
--with-drvpath=/lib/nut \
--with-pidpath=/var/run/nut \
--datadir=/usr/share/nut \
--with-pkgconfig-dir=/usr/lib/pkgconfig \
--with-user=nut --with-group=nut
$ make && make install

Update for 06/10/2012
Well I had not written the weekly work log for the last week that
is because the week was short (oh yeah thanks to all these bandhs
our week got fluctuated and to be frank the week was only 4 days
long) and second was my lazyness. Here goes the update
* After a long discussion with Aravinda on
"why productivity is reducing these days." We concluded the social
network is eating up most of time. So decision was made and I closed
all pinned tabs for Twitter Gmail Identi.ca and Friendica on my browser
* After the above resolution I finished almost 4 chapters of Moder Perl
within 2 hours!. Indeed Social networks kill the productivity.
Update for 13/10/2012
I've really fallen in love with computerised bots, thanks to the wonderful
KGB bot :-). So majority of my work on this week is on bots.
Jabber Dictionary Redesign
After thinking for a while I decided to re-write the dictionary bot
which when release got an overwhelming response as see in the comments of
above link. Few reason for re-write
It has been brought to my attention that a company selling some so-called colon cleansing product wanted to threat with a law suit a Romanian skeptical blogger because he wrote some articles showing that any such products (the one produced by the said company is the most known/popular in Romania) are pure quackery and there is no scientific basis for the claim they make in order to promote their products.
For those of you back at my university, you may have noticed I'm not there this semester.![]() |
| Google's 2012 FEP team |
![]() |
| Myself and Obey Arthur Liu at a SIPB hackathon |
Back in August, I asked Sarah to marry me, and she said yes!
It took a little while to get the proper engagement ring sorted. I proposed
with a stand-in, because I had a heirloom diamond that I wanted to offer Sarah
for the ring. Happily she loved the idea, and so we had a ring made around the
diamond.
sudo aptitude install pandoc python-dev git clone git://github.com/apenwarr/bup.git cd bup;make;sudo make install
BUP_DIR=/home/kumar/BACKUPS bup initBACKUPS is the place where bup is asked to store the backups (much like it's analogue of .git). You can store all your backups within this directory, and you can still classify backup sets within this directory with different names (much like git branches).
bup index -uv /home/kumar/Work
bup save -r kumar@<raspberry_pi_ip_address>:BACKUPS -n workbackup /home/kumar/Workworkbackup is the name of the backup set. This can be paperbackup or databackup or notesbackup so that several classes can be backed up within the BACKUPS directory.
bup -d /home/kumar/BACKUPS/ restore -C /tmp/ /workbackup/latest/home/kumar/Work/offset-coupling-paramsThen scp it back if you need it.
sudo aptitude install python-fuse sudo adduser kumar fuse mkdir Mount bup -d /home/kumar/BACKUPS fuse Mount Then cd into Mount and cp/scp the correct files wherever. fusermount -u Mount
/auto /etc/auto.misc --timeout=60
backupdrive -fstype=btrfs :UUID="7927a7ab-8c3f-4198-bd73-d3cc519a9ac3"fstype may need changing for your file system, and UUID can be found using blkid on the exact partition of the hard disk you wish to back up to.
sudo mkdir /auto/backupdrive/BACKUPS sudo chown kumar.kumar /auto/backupdrive/BACKUPS bup -d /auto/backupdrive/BACKUPS/ init
bup -d /auto/backupdrive/BACKUPS/ index -uv /home/kumar/Work bup -d /auto/backupdrive/BACKUPS/ save -n workbackup /home/kumar/Work
bup -d /auto/backupdrive/BACKUPS/ restore -C /tmp/ /workbackup/latest/home/kumar/Work/offset-coupling-params
#!/bin/sh
bup index -u /home/kumar/Work
bup save -r kumar@<raspberry_pi_ip_address>:BACKUPS -n workbackup /home/kumar/Work
if ls /auto/backupdrive/ 2> /dev/null;then
echo Backing up to the removable disk...
bup -d /auto/backupdrive/BACKUPS/ index -u /home/kumar/Work
bup -d /auto/backupdrive/BACKUPS/ save -n workbackup /home/kumar/Work
echo Backed up to the removable disk! Yay!
else
echo WARNING: Not backing up to the removable disk
fi
What this script does it, it backs up to the NAS, and then checks if the external disk is connected. If the disk is mounted, then it backs up to that disk as well. It might be a good idea to cron or anacron this script, or have someone remind you to run this periodically. The only limitation I have is that you can't use bup restore to restore from a remote repository yet, but that isn't a huge issue for me now. In addition, metadata is not stored by the bup save/restore commands. You would have to use split and join with tar to get that. However, bup is fast moving, so I'd expect these features soon. Till then, this workflow works all right for data only backups.Although this is just a mental dump of the procedure I made for myself, suggestions for improvement are welcome. Thanks.
It appears that a recent
incident at a different campus of the "preschool" (I call it day care)
that Zoe goes to has gotten the attention of the Free-Range Kids blog.
Firstly, I need to say that on the parenting spectrum, I definitely
self-identify closer to the free-range end than the helicopter end. I'm not
sure that I'd let an 8 year old ride the New York subway on their own, but
Zoe's not 8 yet, so I really can't say.
Sarah and I received the same email that is reprinted on the blog, on Friday
night, and we were both (very) mildly alarmed at the situation, but not
particularly concerned, mostly because it wasn't the facility that Zoe goes
to. I'm not sure I'd be that much more concerned if it was, to be honest.
I did like the statistics that the parent quoted in response. I thought that
that put things into perspective, but didn't really take abductions by
estranged parents into consideration.
My one reaction to reading the email was, "why did they wait until after the
incident to escalate it?" but then, from my own experiences in dropping off
or picking up Zoe, I could totally understand not all the staff knowing on
sight all the parents or guardians that do pickups and drop offs. This does
lead to one asking how they know who to buzz in, but that's another can of
worms.
Anyway, I read the 50 or so varyingly indignant comments on the Free Range
Kids blog, and since they were talking about the company that I give a not
inconsequential amount of money to, I feel the need to write a response.
How to get it
As St phane mentioned in the python3-lxc blog entry, the API hasn t yet been finalized and llxc itself is in an early state and many changes are planned, so it s definitely not meant for production use yet, but since we believe in release early, release often in the free software community, here goes
Currently, llxc.py itself is *very* Ubuntu specific and its only been tested on Ubuntu 12.04, but that will be fixed once more of its kinks have been ironed out. Some people are also working on getting python3-lxc on other distributions, which will help a lot.
The llxc.py script itself is hosted on Github: https://github.com/highvoltage/llxc
For python3-lxc and friends, you need to enable St phane s experimental PPA: https://launchpad.net/~stgraber/+archive/experimental
You will then need to install the following packages: lxc, python3-lxc, python3-crypto, lvm, btrfs-tools
To generate the ssh keys used for ssh interaction between the containers, you need to run llxc gensshkeys . The enter and exec commands also rely on your containers being in dns or in your /etc/hosts file, at least for now, which you may have to configure manually.
The Future
There is a lot that I m planning to add, mostly to scratch my own itches. These include:
Changing jobs and moving to a new country... it's just the beginning.And now for something completely different! See you all pretty soon! :-)
On September 30th, 2012 I'm moving to Menlo Park, CA, USA because back in December 2011 I accepted a job offer as a sysadmin (the name is fancier: Operations Engineer) in Silicon Valley. Since then I'm working on the required documentation, so far everything had worked out. I'm starting at the new work on October 8th, and as I'm arriving on October 1st, I'll have a week to take a look around and get to know a tiny bit of San Francisco Bay Area.
In different levels and aspects it is a big opportunity for me, and I'm confident it'll be an unique experience, not only professional, which of course involves working in a bigger company with more complex scenarios and bigger challenges, and on the personal side, I'll live abroad, be an expat.
As you may imagine, I'm working on this process for more or less 10 months, but in the last 30 days it got more intense. Quitting my jobs, organizing my stuff, cleaning part of backlog (and finding out a have a huge to-do list awaiting for me). Spending quality time with family and friends, and also saying goodbye to them. Finishing some aspects of the move (travel tickets, temporary living).
It's new, it's different! I'm super excited and I do want to change a few things to make it easier for family and friends to keep up, make it easier to follow the news, which might help with the distance.
Last weekend, I was a member of the off-stage choir in the Cinderella
production in Wilrijk. As the off-stage choir didn't have all that much
to do (out of 24 scenes, only five of them had music with the off-stage
choir; and then, one of them only required women, and another only
required male voices for about 8 bars out of 200+), I had a lot of spare
time on my hands; and since I'm in the possession of a laptop with 8h+
of battery life, I used some of that time for hacking on dvswitch.
Obviously, when you're typing away on a computer using an uncommon
user interface (I use awesome
as my window manager), questions will arise. I expected this; and
luckily, dvswitch is not the kind of code that requires a lot of
explanation for people to understand how it's useful a short
demonstration is very enlightening.
For most people, that simple demonstration would be enough. But one
person asked me a question that I've heard other people ask me in the
past (albeit in relation to different projects), and that I've always
found the most baffling question people can ask someone who's writing
some computer program:
"Why?"
Setting aside the fact that no, his example of Adobe
Premiere cannot do what dvswitch can, I've never understood the
thought train that leads to "it's been done already, so that's useless."
Why does a poet write poems, when they'll never get something similar to
Shakespeare's works on paper? Why does my father insist on painting
portraits of people including their hands, when he knows he's
not very good at it? Why does my mother teach a bunch of amateurs in the
ways of floristry? Hasn't that been done before?
Because it's fun, that's why.
An interesting question popped up in my Twitter stream today is there an Android alternative to Apple configurator (for iPhone, iPad and iPod Touch) that allows to create a bunch of identical Apple devices with some added configurations and applications. The best I could come up with is not as polished, but on the other hand much more powerful option Nandroid backup and restore (also known as ClockworkMod Recovery backup).
To do this, you need a source phone and a bunch of destination phones. On the source phone a ClockworkMod Recovery (CWR) must be installed (either via a root or via a bootloader unlock). On the destination phones you will either need to also install ClockworkMod Recovery or unlock the bootloader to allow the Fastboot tool to work.
So the procedure then goes as follows:fastboot flash recovery filename.img to write a device-specific version of CWR to the recovery partition of the device (the phone must be in fastboot mode at that point)fastboot flash ... commands, skip flashing the recovery partition if you don t want CMR on the destination devicefastboot oem lock)
And you are done!
All the phones must be of the same model. And that model must support unlocking bootloader for this to work.
I prefer this method, because this way it is possible to create an end device without root, with a locked bootloader and without CWR thus providing some security as unlocking the bootloader wipes the device, so without specific hacking an attacker can not easily get access to system data on such device. It is also possible to do this with devices that do not have an boot unlock if there is a way to root the original firmware which allows to install CWR and go on from there, but that is significantly more complicated and time-consuming, so using devices with an ability to unlock the bootloader is much preferable.
However, before you go to all that trouble, it might be worth to consider if maybe for your particular use case it would be enough with the two commands from Android SDK adb install ... and adb push ... to install applications or individual files on devices or adb backup AppName and adb restore ... to backup and restore one or more individual applications with all their settings. These options have the benefit of that they will work across different device models and that they do not wipe other data or applications from the devices.
As I could not immediately find a better way or even a detailed guide how to do this, I decided to write this post, so it would be easier for other people to find this information. If you know a better way, please do mention it in the comments section!
Wheezy is coming closer to the release, there though are still way too many release critical bugreports outstanding for it. Squeeze has already been released, but it has collected even more release critical bugreports than wheezy since. To be able to reduce these amounts I will be at the Linuxhotel in Essen at the weekend from 23rd to 25th of November, and it would be a great pleasure if I could convince you to join me in this effort.
As readers of my blog might assume, my main aim will be those RC bugs affecting squeeze and I would be happy if some people interested to work on those could join me, I plan to give a quick quick explanation about the version tracking of the BTS and why we should care about stable too, but the event will definitely not be limited to squeeze RC bugs. Also, it will be a good chance to improve your key stats for the web of trust in case your GnuPG key hasn't got enough signatures yet or you want to transition to a stronger one.
Please read the Community page of the Linuxhotel for what they offer for accommodation in case you want to use their lodging. Personally I'll go for the two-bed room with breakfast option, but you are of course free to bring your own sleeping bag and mat if you want to cut short on the expenses.
In case of any questions, feel free to ask me right ahead. It would be great if we could help both our stable release and the next stable release during the weekend, and if you could join in! Please add yourself to the wiki page about the BSP.
Remember when Linus Torvalds lambasted NVidia for not supporting their Optimus technology in their Linux drivers for half a decade and counting? Well, I went out and bought an AMD/ATi video card as mu upgrade. And you know what? Its Linux drivers are far, far worse than NVidia.build-arch and build-indep are now mandatory targets in
debian/rules.
Vcs-* fields, which are already in
widespread use. Note the mechanism for specifying the Git branch used
for packaging in the Vcs-Git field.
Built-Using field, which must be used to document the
source packages for any binaries that are incorporated into this
package at build time. This is used to ensure that the archive meets
license requirements for providing source for all binaries.
symbols system and
more clearly document handling of shared library ABI changes.
symbols files are now recommended over shlibs files in
most situations. All maintainers of shared library packages should
review the entirety of this section.
/run directory exists or is usable
without a dependency on initscripts (>= 2.88dsf-13.3) until the
stable release of Debian supports /run.
I didn't get very far this week with my RCBW efforts, but
luckily we have BSPs going on
:) Here's my short list:
Next.