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' :(

2012-07-15

switching backup devices

The sparc backup server from 2005 was up for a replacement. It was too noisy and too power hungry to keep it running, so it was turned off most of the time anyway. I decided yesterday to replace it with a qnap TS-412, but I wanted to keep the four sata disks, and preferably also the data.

One problem is that there is no way for four RAID5 configured disks to insert them into the qnap without them being "initialized" (as in completely erased losing all data).

First I wanted to be sure all four disks where still operational, which I couldn't do as long as the adaptec controller was in the sparc computer, so I had to move everything to an (already full) x86 machine... or not ?

Being a Linux user, I am generally lazy, so I figured it also had to work if I just moved the controller to the x86, leaving the disks in the sparc... not without risks:

1. the 64-bit pci card had to work in a 32-bit pci slot. Some don't... luckily this one did! The picture below shows the Adaptec controller in the x86 on the right, with the sata cables going through the back of the sparc to the four disks.

2. What to power on first, the x86 or the sparc ? Can something break if only the controller, or if only the disks have power ? I pressed both buttons simultaneously... was I lucky that it worked, or is this normal ?

3. The fricking sparc blade 1000 cover has to be shut tight for the sparc to actually power on. Note also the lack of any cables on the x86 (the left), except for the cat5. This computer has been working without keyboard or display since 2003... why bother when ssh and ssh -X can do everything!



4. Will the x86 (running debian) still come up when I add an extra scsi controller? Note that this x86 was installed with Debian ten years ago, and since then upgraded to $currentDebianToyStoryCharacter. It did make the RAID5 appear as /dev/sda, but thanks the UUID= in /etc/fstab it all worked fine!

root@barry:~# fdisk -l 2>/dev/null | grep Disk
Disk /dev/sda: 960.0 GB, 959994396672 bytes
Disk /dev/sdb: 60.0 GB, 60022480896 bytes
Disk /dev/sdd: 200.0 GB, 200049647616 bytes
Disk /dev/sdc: 82.0 GB, 81964302336 bytes


Everything worked, data was copied, disks inserted in the qnap and reformatted and all is up and running.

2012-07-08

Just an hour ago Microsoft Windows had a small problem displaying tram and bus information here in Antwerp ;-)

2012-06-10

gsm langer laten bellen

U kent het vast wel, uw gsm belt, maar u bent net te laat om op te nemen. De standaard beltijd is op 15 of 20 seconden ingesteld. Vooral bij dames die de gsm in de sjakoche steken, is de beltijd veel te kort.

Hieronder de codes om de beltijd te verlengen naar 30 seconden (de 30# hieronder).

Proximus:       **61*+32475151516*11*30# of **61*+32475151516**30#
Base:           **61*+32486191933**30# of *61*+32486191933**30#
Mobistar:       **61*5555**30#
Telenet:        **61*5555**30#
Mobile Vikings: *61*+32486191996**30#

Langer kan niet, want dat zou de providers teveel geld kosten (de beller betaalt vanzodra de voicemail aan springt, de gebelde betaalt bij het terugbellen).

Persoonlijk zou ik liever de optie hebben om deze beltijd op 60 seconden te zetten, of zelfs langer.

bronnen:
De morgen nov 2010
een forum


2012-04-19

gmail new look

Dear Google,

these buttons are easy to use:




these are just plain stupid:




Is there an option to get text on these with the new gmail look ?

2012-04-16

Antwerpen ligt in Oost-Vlaanderen

Wil iemand even met een atlas tot aan de vrt lopen ? Hun info over Antwerpen is een beetje fout...

2012-04-07

vi tutorial

Here is a link to the slides (or use this link if you have no access) of this LOAD vi tutorial. They are based on these linux-training.be html pages.

2012-04-04

about Loadays, a sore throat and a book

Yes, I was at Load (for the t-shirt) or at least my zombie-self was ;-)

Thanks to airco and teaching 8 or 8+4 hours a day for six days in a row I had lost my voice and sleep. Swallowing is painful with a sore throat, and for some reason the sorer the throat, the more one needs to swallow when trying to sleep :(

Anyway, the puppet tutorial at load was excellent! I tried following the Debian packaging talk from Wouter, but missed the start... and became way too exhausted.

In other news, Load saw the world premiere of a new book, more about this later, when I have a landing page set up for orders ;-)


2012-02-26

42

26 February 1970:
- in the morning there were only 4.834.800 seconds on Unix time
- the Beatles released Hey Jude
- rfc 34 was published
- in the evening Led Zeppelin performed in Stockholm
- one of my uncles was 40 years old

today is 26 February 2012:
- Unix time just passed 1.330.210.800 seconds
- only two Beatles are alive
- rfc count is up to 6533
- I am 42
- that same uncle is now 82

2012-02-06

Space: the final frontier

Generation X grew up with a recent history of Moon landings that allowed dreaming about permanent Moon bases and manned missions to Mars in the Eighties.... but both seem to be further away than ever.

Currently the most exciting space endeavors are:

Juno
Launched in the summer of 2011 and on a five year trip to explore Jupiter. If all goes well Juno will orbit Jupiter in the years 2016 and 2017.  Jupiter was already explored by the Pioneer and Voyager probes, and while I have no doubts about the scientific value of this mission, I fear that the mathematics behind the Earth flyby next year to speed up its course to Jupiter are more exciting.

Tiangong
China achieved automatic space docking in 2011. They have a small space laboratory named Tiangong and reliable rockets and spacecraft to get there. While I applaud their effort and follow their progress closely, it does feel like repeating Mir and Skylab. Expect one or two spacecraft to dock with Tiangong this year. Their progress is steady, but slow.

SpaceShipTwo
Richard Branson has the money and the will to start a space tourist business with SpaceshipTwo. The goal is to fly tourists to space... well almost space since they aim for the bottom of the Thermosphere, well below the ISS (which in itself is barely halfway in the Thermosphere). Flights with paying tourists should start in 2013.

New Horizons
Maybe the most promising of all current missions, aiming for a close encounter with Pluto. (Remember Pluto used to be a planet). Promising because we have not been to Pluto yet. The best pictures today are only ten pixels wide. Expect some nice desktop (or smartphone) wallpapers by 2015.

So... no Mars to stay mission yet, no manned Moon base today, nor are there any plans to return to the Moon (please don't point to babbling American presidential candidates or Russian managers at Roskosmos). Maybe a blog post about Bigelow or SpaceX next year... did I miss anything ?


2012-01-27

staking

Vakbonden hebben in het verleden zeker hun functie gehad om op te komen voor basis mensenrechten voor arbeiders. Dat is gelukt, ondertussen leven we in België allemaal in grote luxe. Hoeveel stakers bezitten een eigen huis, eigen wagen, laptop, flatscreen TV, smartphone en hebben nog geld over voor een reis?

Met de bedrijven gaat het minder goed. Het is crisis en de concurrentie uit het Oostblok en uit Azie is moordend. Het laatste wat een bedrijf vandaag nodig heeft, zijn stakers. Staken kost geld, en de winstmarges van de industrie zijn al lang niet meer wat ze vroeger waren. Als ge frustraties hebt met de banken, ga dan naar een andere bank. Er zijn voldoende kleine banken die niet gokken op de financiële markten. Maar werk uw frustraties niet uit op onze bedrijven aub.


Maandag wordt er niet gestaakt voor mensenrechten, wel om invloed uit te oefenen op de regering. De vakbonden willen het beleid van dit land bepalen. Als ze het dan toch zoveel beter weten, dat ze dan een partij oprichten. Eigenlijk zou Di Rupo en zijn regering maandag ontslag moeten nemen en tegen de vakbonden zeggen "Doen jullie het maar, en neem ineens het parlement (of alle parlementen sic) over!".

We hebben in dit land teveel! Teveel parlementen ok, maar vooral ook teveel luxe. Vergelijk met Azie, het Oostblok, Noord-Afrika waar men nog volop moet zorgen voor basis produkten zoals riolering, electriciteit, proper water enzovoorts. Daar zijn nog veel mensen die willen werken, die hard willen werken en die blij zijn dat ze werk hebben. Wees dus niet boos als na de staking van maandag blijkt dat bedrijven liever in Azie een filiaal openen dan hier.

Ik ga werken op maandag, want staken heeft alleen maar nadelen voor ons land!



2011-11-24

Mobile Vikings

Today is my 42nd day as a Mobile Viking. Call, sms and internet work perfectly and it is at least 50 percent cheaper than Belgacom Proximus! (No this is not an ad, I'm just happy for making a good decision.)

2011-11-17

Vrije software

Dinsdagavond gaf ik op cvo tsm een inleiding van een uurtje over vrije software. Het event is gefilmd en zal binnenkort online komen. De slides kan u hier(pdf) al bekijken.

Achteraf lag ik er wakker van omdat:
- mijn verhaal er absoluut niet uit kwam zoals ik wou
- ik vergeten te melden ben bij de vier vrijheden dat je eigen interne aanpassingen *niet* moet vrijgeven onder de gpl.
- hoewel mensen op de achterste rijen mij perfect konden verstaan, had ik voor een aantal personen toch beter de micro gebruikt (er was 81 man)

De balans is gelukkig nog positief omdat:
- meer dan 40 van de 49 evaluaties toch wel extreem goed waren (allemaal 8/9 of 9/9 voor de vragen over de spreker)
- er maar twee evaluaties waren die mij niet willen terugzien als spreker
- ach ik heb weer iets bijgeleerd over spreken voor groepen
- er is een basis gelegd voor een goeie talk over vrije software

2011-11-08

iSCSI mini howto

Some things in life, like iSCSI, are simple!
iSCSI is a protocol that allows you to have SCSI over IP.

The iSCSI Target

The host containing the physical hardware is called the iSCSI target and is easy to setup on Linux using iscsitarget.
aptitude install iscsitarget
aptitude install iscsitarget-dkms (Debian 6)

After enabling it in /etc/default/iscsitarget you can use files, hd devices, partitions, lvm volumes or software raid mdadm devices as 'physical hardware disks'
root@debby6:/etc/iet# cat ietd.conf
Target iqn.2010-02.be.linux-training:storage.lun1
IncomingUser isuser hunter2
OutgoingUser
Lun 0 Path=/iscsi/lun1.img,Type=fileio
Alias LUN1

Where /iscsi/lun1.img is a zeroed file created with
dd if=/dev/zero of=/iscsi/lun1.img count= bs=

Add the device to the allowed list:
root@debby6:/etc/iet# cat initiators.allow
iqn.2010-02.be.linux-training:storage.lun1

and start the server. You should see this:
root@debby6:/etc/iet# cat /proc/net/iet/session
tid:1 name:iqn.2010-02.be.linux-training:storage.lun1
The iSCSI Initiator

The host that connects to this target server is called the Initiator. Most Linux distros have this available as open-iscsi.
aptitude install open-iscsi

A discovery will show available devices on the target:
root@ubu1104:/etc/iscsi# iscsiadm -m discovery -t st -p debby6
192.168.1.31:3260,1 iqn.2010-02.be.linux-training:storage.lun2

Configuration with chap user and password takes a couple of commands:
root@ubu1104:/etc/iscsi# iscsiadm -m node --targetname "iqn.2010-02.be.linux-training:storage.lun1" --portal "debby6:3260" --op=update --name node.session.auth.authmethod --value=CHAP
root@ubu1104:/etc/iscsi# iscsiadm -m node --targetname "iqn.2010-02.be.linux-training:storage.lun1" --portal "debby6:3260" --op=update --name node.session.auth.username --value=isuser
root@ubu1104:/etc/iscsi# iscsiadm -m node --targetname "iqn.2010-02.be.linux-training:storage.lun1" --portal "debby6:3260" --op=update --name node.session.auth.password --value=hunter2

That's it! Now (re)start the open-iscsi service and use fdisk to see your iSCSI device.

2011-10-21

November 2011 : No radio, no music!

In the news today: Taxi drivers will now have to pay a daily fee to play radio (or even music on CD for which they already paid). The fee goes to SABAM (think MPAA).

Radio used to be free, to promote music so people would go and buy music. But more and more everyone has to pay because people (could be) listening: first only concerts and parties, then work environments like shops, then waiting rooms, truck drivers, and now taxi drivers. How long will it take until there is a tax on our ears ?! No, I'm not kidding(*), the MAFIA(sorry I meant SABAM) will get there!

Who do we pay ?! The 200 people working for SABAM ? Talk to any *real* artist and ask them how much they get from SABAM, because it is supposed to be all for the 'poor' artists. We already pay the rich and powerful for the music we buy, we pay a second time for the storage media where we keep the music (cd/usb/harddisk,...), so starting today we will pay three times when taking a taxi while listening to our own music. We could soon be paying a fourth time via our monthly internet connection payments. And I am probably forgetting a couple...

Why do people accept this ? What's the benefit of hauling money to SABAM for society ? What do we get in return ? It seems to me that this is a classical story of the rich getting richer... for doing absolutely nothing.

We should all refuse to buy any kind of music, turn off the radio and not play any audio for a whole month! Yes, make November 2011 the month of protest against the storm on SABAM taxes.


(*) It reminds of an old story. Put a frog in boiling water, and it will jump out immediately. Put a frog in cold water and slowly heat it up... the frog will stay put and die. Slow increments are easier to accept than sudden changes, but the end result is the same.

2011-06-26

Bluetooth and NXT setup

A reminder for myself on how to configure bluetooth for NXT devices.

Turn on all devices and activate bluetooth on the Linux, then:
$ hcitool scan
Scanning ...
00:16:53:08:XX:XX Julie
00:16:53:0B:XX:XX Mercedes

Then configure /etc/bluetooth/rfcomm.conf like this:
$ cat /etc/bluetooth/rfcomm.conf
rfcomm0 {
bind yes;
device 00:16:53:0B:XX:XX;
channel 1;
comment "Mercedes";
}

rfcomm1 {
bind yes;
device 00:16:53:08:XX:XX;
channel 1;
comment "Julie";
}

Then check the binding (as root):
# rfcomm release all && rfcomm bind all && rfcomm
rfcomm0: 00:16:53:0B:XX:XX channel 1 clean
rfcomm1: 00:16:53:08:XX:XX channel 2 clean

Then create an nxt.dat file in ~ :
$ cat /home/paul/nxt.dat
BTH::JULIE=BTH::JULIE::00:16:53:08:XX:XX::5
BTH::MERCEDES=BTH::MERCEDES::00:16:53:0B:XX:XX::5

Then compile and download to the NXT:
nbc foo.nbc -O=bar.rxe
nbc -b -d -S=BTH::Julie bar.rxe

2011-06-17

post-ubuntu install

Packages installed after default ubuntu install (personal bookmark).
root@mac:~# history | grep 'aptitude install'
11 aptitude install nvidia-settings nvidia-bl-dkms \
pommed vim nfs-common wicd
45 aptitude install azureus wesnoth chromium-browser
104 aptitude install virtualbox-4.0
139 aptitude install wireshark wireshark-gnome
152 aptitude install gimp
173 aptitude install openssh-server
180 aptitude install pdfedit
201 aptitude install ttf-bitstream-vera
206 aptitude install unrar
219 aptitude install imagemagick
220 history | grep 'aptitude install'

2011-06-07

World ipv6 day!

8th of June is tomorrow already!
My humble contribution is to teach networking students tonight about ipv6. It will be mostly theory since the school doesn't support ipv6 on the network. Luckily I have some screenshots and wireshark sniffs from this morning of a working ipv6 connection to the internet.

One of the ipv6 test websites.


A tcp handshake and http connection over ipv6 (using 6to4).


And a PTR record in ip6.net with 32 child domains (okay you don't need ipv6 for this, but it is related).

2011-04-23

another Microsoft virus...

Selecting an image on Google Image Search regularly minimizes the browser and pops up this annoying dialog.


Running Linux you know this is fake, but it is still annoying because (besides the minimizing of your browser) also opens a tab that refuses the back-button, and you don't get to see the actual image.


The first time this is funny (there is no C: drive nor a "My Documents" directory on "My computer").

Searching Google Images for something simple as "Axis Allies board 1984" and clicking on an image is enough to provoke it.

If you want to see the fun on Linux, use this link. Use at your own risk ;-)

http://www.google.com/imgres?imgurl=http://i.ehow.co.uk/images/a05/74/g6/axis-allies-board-game-rules-800X800.jpg&imgrefurl=http://madpeasant.com/cultivo-hasboro-axis-and-allies-board-game-download/&usg=__33uvjrDPcS0KU-Ifngk1w1ooYKI=&h=292&w=500&sz=146&hl=en&start=5&sig2=Uzaxsm4iXRrpvVidDNdnMw&zoom=1&tbnid=yFktGyapNI72ZM:&tbnh=76&tbnw=130&ei=MKeyTfGWCIaCOrHZ5IcJ&prev=/search%3Fq%3Daxis%2Ballies%2Bboard%2B1984%26hl%3Den%26safe%3Doff%26client%3Dubuntu%26hs%3DpRv%26sa%3DX%26channel%3Dfs%26biw%3D1912%26bih%3D1055%26tbas%3D0%26tbm%3Disch%26prmd%3Divns&itbs=1

(the url might not work since I reported it )

Click OK on this last dialog to close the tab.

2011-04-16

loadays talk

Some people convinced me to do a talk^Wtutorial tomorrow at loadays. It will be about bash!

Maybe I will use some slides from this downloadable pdf (50KB).

Content will come from the linux-training.be project (but that website stalled since February due to a redesign of our build-system). People that go to loadays can download the newest (1MB) pdf here.

LOAD, the Linux system administrator days