-
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 1)
Posted on May 3rd, 2011 3 commentsI have been wanting to try an Alix SBC from PC Engines for some time now, and 10 days ago I finally did order one.
Thorough as I am I checked lots of sites (mostly within the EU) for prices, shipping, availability and range of accessories. In the end I chose to place my order at Gooze.
I had no trouble at all with my order from Gooze, they were very helpful and kind. I got a mail asking why I had ordered antennas and pigtails but no wifi card. I explained that I was looking for a dual band card, and that I had not seen one in their web shop. Nine minutes later I got a reply saying that they had a Wistron DNMA-92 in stock, and that they would be able to add it to my order and still ship it the same day. Easter holidays delayed the shipping a bit, as expected, but early morning next business day the package arrived, and my new found friends at Gooze had even mounted the board in the case, the wifi card on the board, and pigtails and antennas where they should be.
I do not hesitate to recommend Gooze for anyone looking for an Alix system. They also have some useful tutorials on their site regarding Alix-iana, and even more on smartcards and security. (Their site inspired me to order a smartcard reader with Linux support, the Feitian R-310, and a blank smartcard, Feitian PKI, formerly known as Feitian FTCOS / PK-01C.
On a side note, I actually placed my order at 14:50 on Wednesday April 20. Gooze promise that orders placed before 15:00 will be shipped the same day, so when my order status had not changed the next day I wrote to them and politely asked if the order status update was slow or if something else had happened. I also made it clear that I was not at all in a hurry and had no problem waiting for my stuff. Within minutes Jean-Michel Pouré of Gooze wrote back to me explaining that the entire staff had been to London for a day on a business trip. He apologized and promised to add another smart card to my order at no extra cost. I had not expected anything like that, and I would have been quite happy just to know that my order had arrived and would be shipped some day. That is really a good way to make happy (and returning) customers.
Currently I am trying to find the “perfect” way to install Linux on this little gem, most likely Debian in some form. I have tried Voyage, a customized Debian for embedded platforms with explicit support for Alix boards (including the three front panel LED’s and the temperature sensors), and I think it might be good for a system as this one I would prefer to know what customizations are made and why. I would be more comfortable setting up the system myself from the ground up.
Gooze has a few nice howto’s on Alix stuff, and I also tested the Debian installation suggested. They suggested installing the netboot tarball to a CF partition, boot from this and using the Debian Installer to install the latest stable version (Squeeze). This went fine, but I ended up with a system that felt a bit too bloated, considering that it is embedded. Documentation and man-pages are fine, but I feel no desperate need to waste a lot of flash memoryon an embedded system for it. When I need documentation I can use my workstation or the web.
A concept that appeals to me more is the Emdebian project, proper Debian adapted for embedded systems. The idea is right, the documentation sucks (or I am not able to find it). The Emdebian flavor Grip seems to be about minimizing dependencies to an absolute minimum, and also stripping documentation from packages. They process the actual Debian packages, remove unnecessary parts and repack them. You would normally have both Emdebian and classic Debian repositories, so that packages that are not yet Emdebianized/Grip:ed will be pulled from the normal Debian repositories.
This sounds like the best of two worlds, the most common 10 % of the Debian packages are available from Emdebian, being smaller and having less dependencies, and anything I want from the remaining 90 % is still available for installation. I suspect that any vanilla packages that I install will be “upgraded” to Emdebian style if they are converted in the future.
But my current self imposed task is to work out a good (or “perfect”) way to install a basic Emdebian system to use as a start for my customizations. The Emdebian site recommends a tool called multistrap, being somewhat similar to but different from debootstrap. It will create a basic rootfs, but there is not a lot of information on how to proceed to a bootable CF image. I have found some tutorials using debootstrap, but I am not sure if they apply since the tools work in different ways. I will get back about this soon, I think.
Lastly, I tested OpenWRT too, that I have running on my current router/firewall etc (an ancient Netgear WGT634U). My first attempt at compiling an image for Alix did not work out (though OpenWRT does have explicit support for Alix), probably some misconfiguration on my side, but I tested with a plain x86 image that I downloaded, it worked just fine, and compared to all other Linuces I tested this one was definitely the fastest! It boots in maybe 20 – 40 % of the time the others need, and system shutdown is even faster relative to the competition. It does not have the backbone of the huge Debian community, but the sheer speed of it still makes it interesting as an alternative.
-
Ännu en smärtfri uppgradering av WordPress
Posted on May 6th, 2009 No commentsJag har skjutit upp det alldeles för länge nu, att uppgradera till senaste versionen av programmet bakom denna blogg. Jag kan inte säkert säga varför, det har gått förvånansvärt lätt varje gång tidigare, och så även idag. Allt bara fungerade, även mitt gamla “tema”, utseendet på bloggen.
Den sida av WordPress som jag ser, den administrativa, har ändrat sig betydligt sedan jag uppgraderade senast (gick från 2.3.1 till 2.7.1), och jag känner knappt igen mig längre.
Andra bloggar om: blogg, WordPress, 2.7.1
-
sweblogs.com kör en DOS-attack mot min blogg
Posted on March 12th, 2008 5 commentsErik, en av stjärnorna bakom det underbara webhotellet på http://manufrog.com/ kontaktade mig idag och berättade i korthet att en server gick som sirap, det var svårt att köra säkerhetskopieringen och att han kunde knappt ens logga in för att se vad som var fel. Han kunde konstatera att min domän var skyldig till den höga belastningen, och att det var ett enskilt skript, en enskild webb-sida, som sänkte servern. Det var min wp-rss2.php, ett skript som levererar rss-flöden, och han bad mig kolla vad det var som var fel, om det var något tokigt med skriptet. Normalt skulle Erik ha löst detta problem snabbt själv, men det var nog lite svårt när han knappt kunde logga in. Jag vet hur tufft det kan vara att försöka analysera en server som är för överbelastad (tydligen tuggade “min” wp-rss2.php i sig 140 % av CPU-tiden på en dubbelkärnig processor, sjukt mycket).
Jag kollade snabbt på WordPress-sajten, hittade inget där om kända problem med wp-rss2.php, kollade logganalyserna genom webhotellet, det stämde att det var ofantligt många anrop till det skriptet, så jag laddade hem de råa loggfilerna och körde tittade på dem. Redan när jag tittade snabbt på loggarna såg jag att en IP-adress verkade skyldig, med upp till 3–4 anrop per minut. Det följande fick jag fram när jag fördjupade analysen lite:
jadler@server:/nyfiken.org/nyfiken-log$ grep index.xml nyfiken.org|grep 193.200.86.17|wc –l
576
jadler@server:/nyfiken.org/nyfiken-log$ grep index.xml nyfiken.org|grep –v 193.200.86.17|wc –l
1
jadler@server:/nyfiken.org/nyfiken-log$ grep wp-rss nyfiken.org|grep 193.200.86.17|wc –l
557
jadler@server:/nyfiken.org/nyfiken-log$ grep wp-rss nyfiken.org|grep –v 193.200.86.17|wc –l
49
Loggfilen jag tittade på innehöll data från tolv timmar, och 193.200.86.17 har alltså i snitt skickat 1,6 anrop per minut.Jag lade in en tillfällig spärr i .htaccess-filen, som om jag skrev rätt antagligen gör att ingen med den IP-adressen kommer åt någon information alls från http://nyfiken.org/. En snabb whois på den skyldiga IP-adressen pekade mig till ett företag i Göteborg, och för en gångs skull en användbar kontaktadress. Jag mailade Daniel vars adress fanns där och fick svar ganska snabbt. Han tror att det är http://sweblogs.com/ som ligger bakom attacken. De skall normalt inte begära rss-flöden oftare än var femte minut, så nu är något fel. Jag vet inte om andra har drabbats av samma sak, men är det så vet ni nu var ni skall leta.
I titeln nämner jag DOS-attack, där DOS står för Denial of service, en form av attack på Internet där man skickar så många förfrågningar till en server att den inte hinner med att svara på legitima förfrågningar från de riktiga besökarna. Jag tror och hoppas att det inte var det som var sweblogs tanke med detta, utan att de helt enkelt har buggiga program.
Jag kan för övrigt varmt rekommendera Manufrog! Jag upphör inte förvånas över deras service, nivån på deras support, hur vänliga och trevliga de är i alla lägen, och hur gärna de ställer upp med hjälp med små finjusteringar som jag gissar att andra webhotell inte skulle drömma om att hjälpa sina kunder med. Att de sedan inte tar mycket betalt har jag inget problem med, jag betalar gärna det de begär av mig även om det känns som att jag får betydligt mer än vad jag betalar för.
Andra bloggar om: webhotell, WordPress, htaccess, DOS-attack, sweblogs, Manufrog
-
WordPress, säkerhetsuppdatering, 2.3.3
Posted on February 5th, 2008 No commentsJag ser att det har släppts ännu en brådskande säkerhetsuppdatering för WordPress.
Ryan skriver:
WordPress 2.3.3 is an urgent security release. A flaw was found in our XML-RPC implementation such that a specially crafted request would allow any valid user to edit posts of any other user on that blog. In addition to fixing this security flaw, 2.3.3 fixes a few minor bugs. If you are interested only in the security fix, download the fixed version of xmlrpc.php and copy it over your existing xmlrpc.php. Otherwise, you can get the entire release here.
Also, there is a vulnerability in the WP-Forum plugin that is being actively exploited right now. If you are using this plugin, please remove it until an update is available.
Since we are talking security, remember to use strong passwords and change them regularly. While you’re updating WP and your plugins, consider refreshing your passwords.
Det känns tryggt att det kommer nya säkerhetsuppdateringar ofta, även om jag ärligt talat inte har installerat den förra än. Vad jag kan se i bulletinen så är det inte säkerhetshål som berör mig särskilt mycket. Jag har inga sparade utkast, och skulle någon läsa eventuella sådana skulle det inte göra mig så mycket. Jag är ensam användare på min egen blogg, så den senaste varningen rör mig nog inte heller.På sätt och vis känns det, åtminstone för mig personligen, som att dessa täta uppdateringar och den inte helt automagiska proceduren för att uppgradera, gör att jag gärna väntar ett tag innan jag uppgraderar. Väntar jag som nu drygt en månad så kanske det kommer ännu en ny uppdatering, och det är lika mycket (eller lite) jobb att uppgradera oavsett hur många (mindre) versionssteg det gäller. Som Debian-användare är jag väl bortskämd, van som man är att kunna uppgradera hela linux-installationen med två ord: ‘apt-get upgrade’…
Andra bloggar om: WordPress, säkerhet, uppdatering

