nyfiken blog
Johan Adlers sporadiska skriverier-
En dålig tidpunkt att jobba som hyrläkare i Gävle!
Posted on March 21st, 2012 1 commentStatusuppdatering: Jag valde en dålig tidpunkt att jobba extra som hyrläkare i Gävle!
Jag vaknade precis ur en dröm som jag vill beskriva hellre än att somna om.
Jag skulle jobba extra som distriktsläkare/allmänläkare i Gävle (staden var namngiven i drömmen, det var inte att jag kände igen mig från sjukhuset), med tjänstgöring på sjukhusets akutmotttagning. I realiteten handlade det om ett mycket mindre sjukhus i en betydligt mindre, lantligare och mer lugn stad.
Vi var 6–10 hyrläkare som delade boende (tänk: jourrum) på ett par sammanslagna rum på en oanvänd intensivvårdsavdelning. Jag hade hållits vaken halva natten av mina tillfälliga kollegor och rumskamrater och försov mig till första tjänstgöringspasset, som nu var på invärtesmedicin, inte som DL på akuten, Jag tog det viktigaste av mina saker och stressade iväg genom okända korridorer i jakt efter rätt ställe att befinna mig på. Föga anade jag att Gävle sjukhus som helhet nu bokstavligen var världens minst “rätta ställe” att befinna sig på.
Utan förvarning hade staden drabbats av en våldsdådsvåg på ultrabrutal splatterfilmsnivå. Tänk “The hills have eyes”, “Reeker”, “Vacancy”, “[REC]” och fler i den stilen, multiplicera med surrealismen från “Den andalusiska hunden” och ultravåldet från “A clockwork orange” (boken, inte filmen, som inte klarar av att förmedla hemskheterna på samma sätt), och krydda med de otrevligaste delarna från “Apocalypse now”. Jag befann mig plötsligt i något som skulle få nyss nämnda filmer att se ut som ett barnprogram för förskolebarnen.
Innan jag insett vidden av katastrofen började jag försöka fråga mig fram, för att hitta rätt ställe att vara på, rätt person att ta kontakt med. Nyvaken som jag var, och jättestressad över att ha försovit mig, tog det ett tag innan jag tog in det som utspelades omkring mig.
Jag stod förmodligen någonstans mellan akutmottagning och röntgen, på ett minimalt landsortssjukhus i en liten sömnig håla någonstans långt från jäkt och stress. Något var fel. Överallt omkring mig fanns det bårar, stressad skrikande personal som försökte hjälpa skrikande skadade patienter, inte helt få av dessa var i sin tur skrikande skadad personal. Alla var ungefär lika blodnedstänkta, alla med en skvätt av någons kroppsdelar stänkt över sig. Det var lite som att vakna upp inne på sjukhuset i en kombination av “Day of the triffids”, “28 dagar senare” och hela “Resident evil”-serien sammantaget, men jag var där innan korridorerna blev tomma och tysta.
Anhöriga och de mindre svårt skadade patienterna fortsatte med ultravåldet inne i sjukhusets korridorer, någons tarmar flög åt mitt håll, personal/patient-kvoten minskade stadigt. Fast besluten om att göra mitt jobb insåg jag plötsligt att jag hade glömt viktiga delar av mina personliga undersökningsinstrument på rummet. Jag tog mig tillbaka till det IVA som legat i malpåse några år, fann rummet jag lämnade en liten stund tidigare, men det var nu helt urblåst. Jag förstår nu (vaken, vet inte hur jag fick denna kunskap i drömmen) att man hade placerat svårt skadade patienter där, och att halvdöda patienter och deras anhöriga hade gått bärsärkagång. Det som var något i stil med en hyfsad ungkarlslya innan jag vände ryggen till var nu väggar, golv och tak, med förhållandevis små inslag av krossat glas och ett lager av mycket små (tänk: valnöt och mindre) delar av döda människor.
På något sätt fick jag ändå tag på min lilla kasse med stetoskop och Crocs-tofflor. Jag lånade ett passerkort av en stressad men trevlig sjuksköterska, vi hann med en skämtsamt ironisk ordväxling om läget omkring oss, när jag sekunden senare skulle lämna tillbaka passerkortet fick jag ge det till hennes betydligt mer tystlåtna kollegor som var täckta av delar av den trevliga sköterskan vars kort jag hade i handen.
Några meter senare på min väg mot en högst sannolik död satte jag mig ned i ett undanskymt hörn, tog fram telefonen och började skriva en kort stoisk statusuppdatering om att jag jobbade extra som hyrläkare i Gävle, men att jag verkade ha valt fel tidpunkt för uppdraget. Jag förstod att det inte fanns någon anledning att beskriva läget omkring mig. Jag insåg att ingen i Sverige eller någonstans i världen kunde undgå att känna till de brutala hemskheterna i vars epicenter jag satt hopkrupen med ryggen mot hörnets två väggars möte.
Jag valde en dålig tidpunkt att jobba extra som hyrläkare i Gävle!
-
USB sound on Alix running Voyage
Posted on May 18th, 2011 1 commentI thought that using a USB sound card with Linux would be easy, just plug and play, but I was wrong, it seems. Plugging in the Terratec Aureon Dual USB (ID: 0ccd:0077) that I bought rendered a promising output from dmesg and lsusb, and lsmod showed that even relevant modules were loaded. The problem was that mpd and other programs did not find any way to actually output sound to any device. They had the firm belief that my system was lacking any sound card. Maybe I would need some sound related packages?
aptitude install alsa-base alsaplayer alsaplayer-text alsa-utils
No luck… The mpd configuration file /etc/mpd.conf seemed mostly confusing when it came to output devices, and the wiki page it referred to did not help either. A search with Google on the USB ID was helpful though, as usual. Someone with the alias BigRon also had problems with Debian and this Terratec USB sound card. The results from his attempts, documented with verbose output, was similar to mine. User bandan’s reply was the beginning of the end of my trouble! I had to edit /etc/modprobe.d/alsa-base.conf to comment out a line preventing USB devices from becoming the first (default) device, substituting it for a line with the opposite effect.
## Keep snd-usb-audio from beeing loaded as first soundcard<br/> #options snd-usb-audio index=-2
# Fix from http://forum.doozan.com/read.php?2,4119,4166<br/>- Allow snd-usb-audio to be loaded as first soundcard options snd-usb-audio index=0
Now I was at least able to get alsamixer to acknowledge the mere existence of a sound related device, but alas it chose an input only device (most likely my Logitech webcam with microphone) as the default device even though it called the Terratec one default by name. Luckily for me the just mentioned forum thread linked to a more substantial thread describing the problem in more depth. I added myself and the mpd user to the audio group, to make sure that there would not be any problems with permissions regarding the devices
addgroup jadler audio addgroup mpd audio
I was still unable to play anything (without explicitly chosing what Alsa refers to as sound card 1). So I kept trying the stuff that had worked for the person reporting in the forum, creating an /etc/asound.conf file with basically the same content as suggested in the last thread referred to above, but changing all references to hw:0 to hw:1, and from card 0 to card 1. Now mplayer works, but I still can’t get mpd to do its thing. -
Alix2d13 — Voyage Linux or Debian Live?
Posted on May 12th, 2011 No commentsI am not sure whether it is caused by the Ubuntu 10.10 amd64 running on my workstation or on some bug in the Emdebian package, but I do have a hard time to get Emdebian installed. I have tried Multistrap, Debootstrap, and Debian Installer, and I have done it on the Alix computer using PXE boot, on my workstation (followed by chroot etc), and on virtual machines using qemu/kvm or Virtualbox, but so far no luck.
All of this makes it less and less attempting to actually install any Emdebian based Debian, and so I gradually turned back to Voyage Linux. When I was browsing the Voyage site I learned about Debian Live, the system that “punkytse” uses to create the Voyage images, and also offers for download under tha name “Voyage SDK”. So now I am testing Debian Live and trying to learn more about it.
The wiki and the manual seems to be a good place to start when learning about Debian Live.
For those interested in PC Engines Alix the Alix forum may also be a good source of information.
(I should really find a better WordPress theme, I know…)
-
Installing Linux on PC Engines Alix2d13 (part 2.5)
Posted on May 10th, 2011 No commentsAfter publishing I realized that I could have supplied more information, and more downloads, than I did in my previous post.
Here are links to patched versions of Debian netboot.tar.gz (stable/Squeeze, testing/Wheezy and daily build), all downloaded and patched today, 2011-05-10:
- netboot-ttyS0-stable-110510.tar.gz
- netboot-ttyS0-testing-110510.tar.gz
- netboot-ttyS0-daily-110510.tar.gz
I have also made a diff file for the stable mod.What my script does, basically, is this:
- Untar the tarball and cd to debian-installer/i386/boot-screens/ where all changes are made.
- In the file syslinux.cfg (which is actually a file with PXELINUX configurations) two lines are added:
- serial 0 38400—telling PXELINUX to use ttyS0 for I/O (i.e. as console).
- console 0—do not try to use any video console
- In the files adtxt.cfg, rqtxt.cfg and txt.cfg substitute any occurence of vga=788 for ttyS0,38400n8. This is done in order to tell the kernel that:
- There is no graphic/video console
- The console that should be used is the first serial port, and with the specified settings.
This is a simplification, since my script also includes a variable for the number of the serial port, in case your console is not on ttyS0. I have not included any such convenience regarding speed and other settings for the serial port chosen. -
Installing Linux on PC Engines Alix2d13 (part 2)
Posted on May 8th, 2011 No commentsI have found it to be quite nice to be able to boot the Alix board over the network using PXE. Using the Debian netboot.tar.gz tarball and TFTP I can boot the Debian Installer or a rescue system, and the former lets me install Debian Linux without physically touching the CF.
In order to make netboot use the serial port as console I have patched the Debian netboot tarball, and I made a script that does all the patching, just for you…
I have tested it with the Debian stable and testing netboot.tar.gz downloaded today and it works, and also with the daily snapshot from Debian installer.
The script will modify the file syslinux.cfg in order to make PXELinux use the serial port, and the files adtxt.cfg, rqtxt.cfg and txt.cfg to make sure that the Linux kernel (actually the Debian installer in this case) also uses the serial port as console. (Look at the script to see the actual changes. You should of course have a look at it before running it, anyway.)
Making my ancient Netgear WGT634U running OpenWRT serve PXE images was really a no-brainer. In the Services/Dnsmasq page I entered the three choices shown below, with the patched netboot untarred on a USB stick mounted on /mnt/sda2.
References (other that links above):
- http://www.debian.org/releases/stable/i386/ch04s05.html.en—about setting up a TFTP server for netboot.
- http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html—as above, for dnsmasq
- http://www.debian-administration.org/articles/478—more on dnsmasq
- http://etherboot.org/wiki/dnsmasq—even more on dnsmasq and PXE
Some more patching lets me use preseeding too, but more on that another time.


