2013-11-04

nieuwe laptop kopen ?

Ik zou een nieuwe laptop willen kopen, graag advies:
- moet uiteraard Debian kunnen draaien zonder proprietary binary drivers (dus radeon hd?)
- liefst zonder Microsoft of Apple tax
- kleine harde schijf (ik gebruik amper 50GB)
- rond de 8GB ram
- snelle cpu i5 of i7
- maar wil vooral dus dat Debian er op werkt...
- us qwerty!

Ik was tevreden over de macbook pros die ik heb, maar vind online amper informatie over Debian op die retina Macbook Pro.

Heel wat laptops komen met Intel hd 4000 video, werkt die vlot onder Linux ?

Zou je vandaag nog Lenovo Thinkpad aanraden ? Zo ja welke ?


2013-08-14

independent Raspberry Pi

The Raspberry Pi is great, but by default it needs usb for power and utp for network.

Luckily there is the Smart Power Base to provide power and the Netgear (I use the wna1100 for obvious reasons) for wireless, both making the Pi a lot more independent.


2013-08-04

Recovering lvm2 on degraded mdadm raid 1

An mdadm raid 1 had one disk crash, the other was moved to a new computer (/dev/sdb2).

Step 1: Does fdisk see the disk: yes

root@debian6~# fdisk -l /dev/sdb

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00060f19

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         254     2040254+  83  Linux
/dev/sdb2             255      121602   974722329   83  Linux 
 

Step 2: Gently look with fsck, yes it is part of mdadm
  
root@debian6~# fsck -n /dev/sdb2
fsck from util-linux-ng 2.17.2
fsck: fsck.linux_raid_member: not found
fsck: Error 2 while executing fsck.linux_raid_member for /dev/sdb2


Step 3: Let's see what mdadm says

root@debian6~# mdadm --examine /dev/sdb2
/dev/sdb2:
          Magic : a92b4efc
        Version : 1.0
    Feature Map : 0x0
     Array UUID : e8221214:354aaaf1:e9e15d78:075bfc18
           Name : storage:1
  Creation Time : Thu May  6 20:00:16 2010
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 1949444384 (929.57 GiB 998.12 GB)
     Array Size : 1949444384 (929.57 GiB 998.12 GB)
   Super Offset : 1949444640 sectors
          State : clean
    Device UUID : 0c265a25:cc3f2ddd:ae7a1511:f447c74e

    Update Time : Tue May  1 23:09:11 2012
       Checksum : 498b9bd4 - correct
         Events : 33039098


   Device Role : Active device 0
   Array State : A. ('A' == active, '.' == missing) 


Step 4: Let's fix the md device

root@debian6~# mdadm --assemble --scan
mdadm: /dev/md/storage:1 has been started with 1 drive (out of 2).
mdadm: /dev/md/0_0 has been started with 1 drive (out of 2).

root@debian6~# cat /proc/mdstat 
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md126 : active (auto-read-only) raid1 sdb1[0]
      2040128 blocks [2/1] [U_]
      
md127 : active (auto-read-only) raid1 sdb2[0]
      974722192 blocks super 1.0 [2/1] [U_]
      
unused devices:  

root@debian6~# fdisk -l
....
Disk /dev/md127: 998.1 GB, 998115524608 bytes
2 heads, 4 sectors/track, 243680548 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/md127 doesn't contain a valid partition table 


Step 5: Gently look with mount and lvs/pvs

root@debian6~# mount /dev/md127 /mnt
mount: unknown filesystem type 'LVM2_member'

root@debian6~# lvs
  No volume groups found
root@debian6~# pvs


Step 6: Fix the lvm2 device

root@debian6~# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "md1_vg" using metadata type lvm2

root@debian6~# vgs
  VG     #PV #LV #SN Attr   VSize   VFree
  md1_vg   1   1   0 wz--n- 929.57g    0 
root@debian6~# pvs
  PV         VG     Fmt  Attr PSize   PFree
  /dev/md127 md1_vg lvm2 a-   929.57g    0 
root@debian6~# lvs
  LV      VG     Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  md1vol1 md1_vg -wi--- 929.57g 
 
 
Step 7: The lvm2 device is not activated, yet


root@debian6~# lvdisplay 
  --- Logical volume ---
  LV Name                /dev/md1_vg/md1vol1
  VG Name                md1_vg
  LV UUID                qSpslc-nO70-8jjX-5lBl-ge20-fFdR-dSEnWk
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                929.57 GiB
  Current LE             475938
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto 
 
 
Step 8: Activate lvm2 device and mount


root@debian6~# vgchange -a y
  1 logical volume(s) in volume group "md1_vg" now active

root@debian6~# mount /dev/md1_vg/md1vol1 /mnt

root@debian6~# mount | grep mnt
/dev/mapper/md1_vg-md1vol1 on /mnt type xfs (rw) 
 
 

2013-07-31

regex

I needed a regex to append \index{foo} to any occurrence of **foo** so i wrote
's/\*\*\([^*]*\)\*\*/\*\*\1\*\*\\index{\1}/g'
and it worked the very first time! Yes I feel nerdy today :-) :-)

2013-06-27

Looking for one SunFire v210

Dear Lazyweb,

I've got three SunFire V210 machines and want to set them up for a school.

But, I don't have the ALOM password and I don't have the Solaris root password. Either one of those would allow me to reset the other.

So I am looking for someone who can lend me either a bootable disk that fits in these servers, or a SunFire V210 with admin password for ALOM.

Yes, they will run Debian once I get access to the ALOM.

2013-05-29

MS Exchange on Samba4 ;-)

One of my students tried to install Microsoft Exchange 2010 on Samba 4.
The error is hilarious:
"The operating system version of the domain controller is 4.0.6. The minimum version required is 5.2"

2013-05-24

pidora

Fedora on the raspberry pi ?
Yes, pidora.

Travelling back in time ?
Yes, uptime is great too ;-)

[root@raspi ~]# last
root     pts/0        192.168.1.30     Fri May 24 01:24   still logged in  
reboot   system boot  3.6.11           Thu Jan  1 01:00 - 01:25 (15848+23:25

root     pts/1        192.168.1.30     Fri May 24 01:30 - 19:39  (-5:-51)  
root     pts/0        192.168.1.30     Fri May 24 01:24 - 19:39  (-5:-44)

2013-04-01

kassa niet geopend bij nmbs.be ??

Ja het is 1 april, maar toch. ...dan maar zonder kaartje de trein op.


2013-03-16

Do no evil...

I know, when a service is free one should not complain when this service ends.

Google had the option to put open source and open standards on the map, but it appears they are moving away from both.

It started a while ago when the Open Document standard was no longer supported in Google Docs but Microsoft's coup d'état on ISO remains supported.

It got worse this week:
- Google Reader is canceled (over 112.000 votes in this petition to keep it)
- ad-blocker is thrown out of the android market
- rss reader plugin is removed from Chrome
- jabber invites from third party clients are refused (or is this some spam prevention thing?)

Google is not evil yet... they give us a descent export option in Google Reader and several months to migrate to another feedreader. But I will use this time to think about alternatives for all free Google services.

I hear Samsung is moving to Tizen for their all smartphones and tablets ... are they the Good Guys now ?


2013-02-10

traceroute, a new hope

traceroute to 216.81.59.173 (216.81.59.173), 90 hops max, 60 byte packets
 1  192.168.1.1 (192.168.1.1)  3.622 ms  4.891 ms  6.368 ms
 2  bras05.sn.be.edpnet.net (213.219.132.17)  15.732 ms  16.257 ms  17.796 ms
 3  212.71.17.1.res.static.edpnet.net (212.71.17.1)  19.344 ms  21.439 ms  22.376 ms
 4  router03.adamtel.nl.edpnet.net (212.71.1.225)  27.927 ms  28.969 ms  30.982 ms
 5  20gigabitethernet1-3.core1.ams1.he.net (195.69.145.150)  33.072 ms  36.624 ms  39.553 ms
 6  10gigabitethernet2-1.core1.par2.he.net (184.105.213.102)  48.215 ms  29.036 ms  34.954 ms
 7  10gigabitethernet7-1.core1.ash1.he.net (184.105.213.93)  106.014 ms  106.260 ms  118.466 ms
 8  10gigabitethernet1-2.core1.atl1.he.net (184.105.213.110)  115.431 ms  116.863 ms  118.843 ms
 9  216.66.0.26 (216.66.0.26)  121.510 ms  124.011 ms  124.703 ms
10  * * *
11  Episode.IV (206.214.251.1)  168.761 ms * *
12  * A.NEW.HOPE (206.214.251.6)  143.805 ms *
13  It.is.a.period.of.civil.war (206.214.251.9)  147.454 ms  147.371 ms  146.906 ms
14  Rebel.spaceships (206.214.251.14)  151.425 ms  147.288 ms  150.448 ms
15  striking.from.a.hidden.base (206.214.251.17)  150.538 ms  152.009 ms  154.701 ms
16  have.won.their.first.victory (206.214.251.22)  152.704 ms  155.461 ms  159.273 ms
17  against.the.evil.Galactic.Empire (206.214.251.25)  161.156 ms  162.975 ms  164.736 ms
18  During.the.battle (206.214.251.30)  163.928 ms  166.177 ms  167.020 ms
19  Rebel.spies.managed (206.214.251.33)  176.354 ms * *
20  to.steal.secret.plans (206.214.251.38)  147.308 ms  150.271 ms  150.038 ms
21  to.the.Empires.ultimate.weapon (206.214.251.41)  149.920 ms  150.853 ms  151.340 ms
22  the.DEATH.STAR (206.214.251.46)  151.420 ms  150.189 ms  154.217 ms
23  an.armored.space.station (206.214.251.49)  155.079 ms  155.874 ms  158.325 ms
24  * * with.enough.power.to (206.214.251.54)  148.752 ms
25  destroy.an.entire.planet (206.214.251.57)  150.328 ms  151.625 ms  153.964 ms
26  Pursued.by.the.Empires (206.214.251.62)  155.382 ms  155.399 ms  153.755 ms
27  sinister.agents (206.214.251.65)  153.342 ms  160.143 ms  160.158 ms
28  Princess.Leia.races.home (206.214.251.70)  149.600 ms  147.559 ms  152.637 ms
29  aboard.her.starship (206.214.251.73)  150.486 ms  154.099 ms  178.102 ms
30  custodian.of.the.stolen.plans (206.214.251.78)  189.945 ms  189.366 ms  188.650 ms
31  that.can.save.her (206.214.251.81)  185.738 ms  180.003 ms  181.640 ms
32  people.and.restore (206.214.251.86)  171.094 ms  177.440 ms  144.850 ms
33  freedom.to.the.galaxy (206.214.251.89)  144.029 ms  145.266 ms  150.081 ms
34  0-------------------0 (206.214.251.94)  151.244 ms  156.762 ms  160.833 ms
35  0------------------0 (206.214.251.97)  159.813 ms  161.164 ms  162.849 ms
36  0-----------------0 (206.214.251.102)  163.145 ms  159.603 ms  147.615 ms
37  0----------------0 (206.214.251.105)  150.190 ms  151.956 ms  146.340 ms
38  0---------------0 (206.214.251.110)  148.933 ms  146.840 ms  149.713 ms
39  0--------------0 (206.214.251.113)  152.890 ms  153.403 ms  156.115 ms
40  0-------------0 (206.214.251.118)  153.161 ms  152.886 ms  148.248 ms
41  0------------0 (206.214.251.121)  147.398 ms  148.736 ms  164.282 ms
42  0-----------0 (206.214.251.126)  152.791 ms  152.047 ms  154.600 ms
43  0----------0 (206.214.251.129)  151.762 ms  151.899 ms  152.662 ms
44  0---------0 (206.214.251.134)  150.941 ms  152.273 ms  145.665 ms
45  0--------0 (206.214.251.137)  145.340 ms *  146.452 ms
46  0-------0 (206.214.251.142)  155.372 ms  154.245 ms  147.372 ms
47  0------0 (206.214.251.145)  154.361 ms  154.935 ms  151.986 ms
48  0-----0 (206.214.251.150)  153.716 ms  153.269 ms  148.655 ms
49  0----0 (206.214.251.153)  150.001 ms  148.330 ms  151.759 ms
50  0---0 (206.214.251.158)  145.694 ms  152.570 ms  146.604 ms
51  0--0 (206.214.251.161)  152.259 ms  152.723 ms  152.369 ms
52  0-0 (206.214.251.166)  152.662 ms  147.501 ms  148.572 ms
53  00 (206.214.251.169)  152.226 ms  148.481 ms  149.609 ms
54  I (206.214.251.174)  155.151 ms  153.346 ms  148.142 ms
55  By.Ryan.Werber (206.214.251.177)  150.421 ms  154.800 ms  154.859 ms
56  When.CCIEs.Get.Bored (206.214.251.182)  154.162 ms  148.370 ms  144.950 ms
57  read.more.at.beaglenetworks.net (206.214.251.185)  147.360 ms  157.387 ms  157.877 ms
58  FIN (206.214.251.190)  150.940 ms * *

2013-01-24

Pirate Parley

(Dutch only, about Pirate Party meeting in Antwerp)

Welkom op de eerste Antwerpse "Pirate Parley"!
Onderwerp: Intellectueel eigendom
Gastsprekers : Johan Brants en Ulf Pettersson

Wat?
We nodigen de Antwerpenaren uit om mee te denken en te beslissen over de inhoudelijke standpunten van onze partij. We geloven immers in een meer directe democratie. Daarom willen we, ook al zijn we nog niet verkozen in België, dit ook concreet uitvoeren.

Meer informatie en inschrijven via http://pirateparley1.eventbrite.com