2015-03-26

black beer

There is always room for beer (linky).







Inglorious Quad : excellent !
Oesterstout: excellent !
Embrasse: very good.
Zumbi: excellent !
Barbe Noire: very good.

2014-09-06

Vagrantfile (this is just a bookmark)

This is my (thank you Abel) current Vagrantfile to quickly create a number of servers with two extra disks and three extra network cards:

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
 config.vm.provider :virtualbox do |vb|
  vb.customize ["storagectl", :id, "--add", "sata", "--name", "SATA" , "--portcount", 2, "--hostiocache", "on"]
 end
 (1..3).each do |i|
  config.vm.define "server#{i}" do |node|
   node.vm.hostname = "server#{i}"
   node.vm.box = "hfm4/centos7"
   config.vm.box_check_update = true
   node.vm.network :public_network, ip: "10.1.1.#{i}", netmask: '255.255.255.0'
   node.vm.network :public_network, ip: "10.1.2.#{i}", netmask: '255.255.255.0'
   node.vm.network :public_network, ip: "10.1.3.#{i}", netmask: '255.255.255.0'
   config.vm.provider "virtualbox" do |v|
    v.name = "server#{i}"
    v.memory = 512
    v.cpus = 1
    v.customize ['createhd', '--filename', "server_#{i}a.vdi", '--size', 8192 ]
    v.customize ['createhd', '--filename', "server_#{i}b.vdi", '--size', 8192 ]
    v.customize ['storageattach', :id, '--storagectl', 'SATA', '--port', 1, '--device', 0, \
'--type', 'hdd', '--medium', "./server_#{i}a.vdi"]
    v.customize ['storageattach', :id, '--storagectl', 'SATA', '--port', 2, '--device', 0, \
'--type', 'hdd', '--medium', "./server_#{i}b.vdi"]
   end
  end
 end
end


2014-05-19

Reserved DNS TLD's .invalid ?

I (wrongly) assumed that using a .local domain would never bother the root dns servers. It does (about 1500 q/sec).

So I read the relevant rfc's (2606 and 6761) where it clearly states:

...caching DNS servers SHOULD, by
default, generate immediate negative responses for all such
queries.  This is to avoid unnecessary load on the root name
servers and other name servers...
 
So I did a small test with the most recent bind9 in Debian as a caching only server, and it turns out it sends .local .localhost .example and .invalid to the root name servers ?! Only .test has an immediate response.


root@debian7:~# tcpdump port 53 -l | grep NX &
[1] 5699
root@debian7:~# tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes

root@debian7:~# nslookup
> server 127.0.0.1
Default server: 127.0.0.1
Address: 127.0.0.1#53
> linux-training.local
09:22:15.932194 IP f.root-servers.net.domain > 10.0.2.15.46669: 49328 NXDomain*- 0/6/1 (656)
09:22:15.997731 IP j.root-servers.net.domain > 10.0.2.15.47262: 43556 NXDomain*- 0/6/1 (669)
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find linux-training.local: NXDOMAIN
> linux-training.localhost
09:22:23.099452 IP e.root-servers.net.domain > 10.0.2.15.60696: 22464 NXDomain*- 0/6/1 (673)
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find linux-training.localhost: NXDOMAIN
> linux-training.test
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find linux-training.test: NXDOMAIN
> linux-training.example
09:22:42.124036 IP e.root-servers.net.domain > 10.0.2.15.7293: 8476 NXDomain*- 0/6/1 (661)
09:22:42.141847 IP e.root-servers.net.domain > 10.0.2.15.15481: 31139 NXDomain*- 0/6/1 (671)
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find linux-training.example: NXDOMAIN
> linux-training.invalid
09:22:49.660427 IP e.root-servers.net.domain > 10.0.2.15.60321: 15655 NXDomain*- 0/6/1 (671)
09:22:49.753120 IP l.root-servers.net.domain > 10.0.2.15.63563: 48281 NXDomain*- 0/6/1 (671)
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find linux-training.invalid: NXDOMAIN


So I visit the root dns server stats and notice the top queries (in queries/second):

1 .com 3500
2 .net 2500
3 .local 1400
4 . 1100
5 .home 1100
6. (.com base 64)
7 .org 400
8. .belkin 300

The top five queries for BRU01 (a Belgian root name server) are a surprise:

1 .home 240
2 .localhost 53
3 .local 50
4 .com 19
5 .ru 12

(.be is negligible with 0.4 queries/second)


cheers,
paul

2014-05-16

Coffee or Tea ? Yes!

When people ask me:
"Do you want coffee or tea?" (*)
Then I answer:
"Yes."

... and most assume that I want to be funny, but I don't. I just don't care which of the two (coffee or tea) you give me, I am happy with both.

Turns out I am a hacker.

(*) Do you want spaghetti or rice ? Yes!
(*) Leffe or Chimay ? Yes!
(*) Can I see you tonight or tomorrow ? Yes!


It gets worse when questions contain all possible actions:
(*) Should I stay or should I go?
(*) Can I keep the book or do you want it back ?
(*) With or without sugar ?
 You just gave me all possible options ?! What kind of trickery questions are these ?!

;-)

2014-04-19

Vagrant: Creating 10 vm's with 6 disks each

Hello lazyweb,

the Vagrantfile below works fine, but can probably be written simpler. I've been struggling to create variables like "servers=10" and "disks=6" to automate creation of 10 servers with 6 disks each.

Drop me a hint if you feel like creating those two loops.


paul@retinad:~/vagrant$ cat Vagrantfile
hosts = [ { name: 'server1', disk1: './server1disk1.vdi', disk2: 'server1disk2.vdi' },
          { name: 'server2', disk1: './server2disk1.vdi', disk2: 'server2disk2.vdi' },
          { name: 'server3', disk1: './server3disk1.vdi', disk2: 'server3disk2.vdi' }]

Vagrant.configure("2") do |config|

  config.vm.provider :virtualbox do |vb|
   vb.customize ["storagectl", :id, "--add", "sata", "--name", "SATA" , "--portcount", 2, "--hostiocache", "on"]
  end

  hosts.each do |host|

    config.vm.define host[:name] do |node|
      node.vm.hostname = host[:name]
      node.vm.box = "chef/centos-6.5"
      node.vm.network :public_network
      node.vm.synced_folder "/srv/data", "/data"
      node.vm.provider :virtualbox do |vb|
        vb.name = host[:name]
        vb.customize ['createhd', '--filename', host[:disk1], '--size', 2 * 1024]
        vb.customize ['createhd', '--filename', host[:disk2], '--size', 2 * 1024]
        vb.customize ['storageattach', :id, '--storagectl', "SATA", '--port', 1, '--device', 0, '--type', 'hdd', '--medium', host[:disk1] ]
        vb.customize ['storageattach', :id, '--storagectl', "SATA", '--port', 2, '--device', 0, '--type', 'hdd', '--medium', host[:disk2] ]
      end
    end

  end

end

2014-01-15

The grand Windows vs Linux fight

A lot of muggles are convinced there is some big battle going on between Microsoft and Linux. They are wrong.

Truth is that only a minority of very noisy wannabe-Linux users see this as a fight. I imagine this loud minority as people who once installed Ubuntu but actually spend most of their time playing games on Windows.

The reality is that most organizations use Microsoft on the Desktop and a lot of them also have one or more products like MS Active Directory, MS Exchange or MS Sharepoint.

But every other computer runs a form of Unix, very often this is Linux:
- the millions of servers from Facebook, Google, Twitter, ...
- millions of DSL modems
- more than a billion Android phones
- 98 percent of the 500 largest supercomputers in the world
- Lego robots
- space station laptops
- (in Belgium specifically stuff like the bbox and digibox etc)
- tablets, routers, firewalls, NAS devices (aka "external harddisks"), stock exchanges, radar control, gps navigation and much more

There was no battle, there is no fight, there will never be a Linux vs Windows. They are just different things, Microsoft is used for end user intranet, Linux for servers and all other devices.

(*) Sure there is also iPad, iPhone and Mac, I know that.

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-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-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 * *

2012-12-20

nxcEditor in Linux

nxcEditor is not in any repositories for Debian or xubuntu (12.10), neither is a recent enough version of gambas3.



To get a recent gambas3 do:
add-apt-repository ppa:nemh/gambas3
aptitude install gambas3

To get nxcEditor do:
wget https://sourceforge.net/projects/nxceditor/files/nxcEditor/nxcEditor_v0.1.1.gambas

You also need nbc and nexttool in /usr/local/bin:
wget https://sourceforge.net/projects/nxceditor/files/nbc_and_nexttool.zip
-rwxr-xr-x 1 root root 3123348 Dec 20 20:21 /usr/local/bin/nbc
-rwxr-xr-x 1 root root  557168 Dec 20 20:05 /usr/local/bin/nexttool


Install ia32-libs if you run 64-bit
aptitude install ia32-libs

Have fun :-)

2012-11-11

tmux

tmux is now the first command that I type after logging on to a system. I've become a huge fan of it!

Some shortcuts:
tmux at (to reconnect)
Ctrl-b % split screen right
Ctrl-b " split screen bottom
Ctrl-b o go to next panel
Ctrl-b q select a panel
Ctrl-b d detach

2012-11-02

Things I do not understand...

1. Everybody I have ever met agrees that Belgium needs one uniform nationwide voting ballot during national elections, allowing all Belgians to vote for all political parties, without any kind of regional or cultural restrictions. So why don't we have this yet?

2. Out of six train rides I took this week, six arrived late. Worst was about 30 minutes late, second worst about 12 minutes late. Why doesn't the train company create a real train schedule ? Why is management not fired for this?

3. Most working people have to get to work about 240 days per year. There are 365 days in a year and yet the majority of workers insist on commuting on the exact same time and the exact same days (Monday to Friday), thus creating huge traffic jams. Why not ditch this legacy Middle Aged system of weekdays land use all 365 days of the year in a sensible way?

4. Why the hell are we changing the time twice a year ? It has been proven multiple times that "daylight savings" is wasting energy!

2012-09-17

42 Legacy IT Books

10 euro for this collection of legacy IT books (picture shows one third of the stack). To be picked up or delivered in Antwerp or Mechelen.

English
1985, Commodore, Microsoft Basic for the Amiga
1992, Compaq, Microsoft Windows 3.1 User's Guide
1993, Hamit, Virtual Reality and the Exploration of Cyberspace
1994, IBM PC DOS and MS Windows User's Guide
1994, IBM User's Guide to OS/2
1994, Introduction to Novell Netware 4 Directory Services
1995, IBM Client/Server Guide (OS/2, Lotus, CICS, ...)
1996, IBM Getting Started and Managing the Library1998, Fast Track MCSE (six books on NT4 MCSE)
2000, Cisco, Huston, Internet Performance Survival Guide (QoS)
2000, Siyan, Windows 2000 TCP/IP
2000, Goralski-Kolon, IP Telephony (voip)
2000, Cisco, Benny Bing, Wireless Local Area Networks
2001, Houde-Hoffman, TCP/IP for Windows 2000
2001, Telindus Telecommunications Glossary
2001, Cisco Systems, L3-Enabled ATM Solutions
2002, iRobot Roomba Quick Start Guide
2002, iRobot Roomba Owner's Manual
2003, Solaris 9 for Dummies2005, Otey, MS SQL Server 2005 New Features
2004, Suse Linux Fundamentals (Novell Training)
2004, Suse Linux Administration (Novell Training)
2004, Suse Linux Administration part 2 (Novell Training)
2004, Suse Linux Advanced Administration (Novell Training)


Dutch
1981, Kane, Leventhal, Hawkins, 68000 Machinetaal programmeren
1983, King/Knight, De M68000 processor
1984, Chriet Titulaer, Dit zou je moeten weten over computers
1985, Buyst, Structuur en Organisatie van Computersystemen boek 3: binaire gegevens
1986, Commodore, Kennismaking met de Amiga 500
1987, Dittrich ea, Amiga Intern
1987, Palmans, Vensters op informatica
1990, Findlay/Watt, PASCAL inleiding tot gestructureerd programmeren
1990, De Vlaeminck, Verbaeten, Beredeneerd ontwerpen van programma's in PASCAL
1990, Verkoulen, cursus COBOL 85
1992, Buyst, Lagere programmeertaal en machinetaal
1992, Buyst, Computer Apparatuur
1992, Buyst, Structuur en Organisatie van Computersystemen boek 5: datacommunicatie en computernetwerken
1993, van der Lans, het SQL leerboek
1995, PC Undergound (o.a. x86 assembler)
1997, De Essenties van MCSE Networking Studie Gids

2012-09-01

using bind to block domains

Is this bind usage a good way to block domains on a local network ?

root@gwen:/etc/bind# tail -2 named.conf.local
zone "facebook.com" { type master; file "/etc/bind/db.block"; };
zone "twitter.com" { type master; file "/etc/bind/db.block"; };

root@gwen:/etc/bind# cat db.block
$TTL 24h
@       IN SOA ns1.antwerp.local. paul.cobbaut.gmail.com. (
                  2012082800  86400  300  604800  3600 )
@       IN      NS   ns1.antwerp.local.
@       IN      A    127.0.0.1
*       IN      A    127.0.0.1

Or is there an obvious better solution ?

2012-07-27

Making sense of a serial connection to an ss4000 NAS


update: I consider the unit bricked and will donate it to an open source enthusiast.

I'm trying to make sense of this serial connection on my Intel ss4000 nas (a better picture can be seen here).
I found this dl10-db9 connector in an old computer, should be okay right ?
First problem is that this little cable fits in the pin header in two directions, so I have to figure out the correct way to insert it in the pin header.
The pin header has a whole in its casing on one side, and as far as I can tell from pictures on the internet the red line of this little cable should be on the right side, as in this picture:
I then connect this to a brand new serial cable into a real serial port on another Debian computer. All of the following commands give a blank screen when all cables are connected and the NAS is running(*).

cu -l /dev/ttyS0 -s 9600
cu -l /dev/ttyS0 -s 19200
cu -l /dev/ttyS0 -s 115200
cu -o -l /dev/ttyS0 -s 9600
cu -o -l /dev/ttyS0 -s 19200
cu -o -l /dev/ttyS0 -s 115200
screen -l /dev/ttyS0 9600
screen -l /dev/ttyS0 9600 8N1
screen -l /dev/ttyS0 19200
screen -l /dev/ttyS0 38400
screen -l /dev/ttyS0 115200

115200 should be the correct transfer rate.

If I connect the little cable with the red line on the left side (pin 9 of the header according to this blog) like in the below picture, then all of the above commands give me lots of garbage (at different speeds...) on the screen.
How can I get this serial connection to work ? Do I have to reboot the NAS with every attempt ?

(*) The NAS does not respond to ssh or ping since the last 'aptitude update && aptitude upgrade' :(