My thoughts on Slackware, life and everything

Category: Me (Page 20 of 27)

Happy New Year 2012

I assume all of you had a safe year-ending? With all the fireworks, a finger or an eye is easily lost… I also assume that you are full of good intentions for the new year. I wish you all a prosperous and happy 2012, and I hope we will see a new shining release of Slackware Linux in the course of this new year!

Let me tell you some about what I have been doing in the past days. Thinking about the future of course – not much of that will interest you. More to the point, I have been thinking what needs to be done for Slackware to gain a little more ground.

There has not been a lot of movement in slackware-current for the past months and while that is pretty frustrating, we will have to respect Patrick Volkerding for giving his personal life a bit more priority now. In the meantime, I will keep myself busy with some of the “subsystems” in Slackware – KDE 4.8 is around the corner and I will certainly build packages for that.

There is also the urgent issue of dealing with JDK and JRE. As you may remember, Oracle decided that new binary releases of its own Java SE (the runtime or JRE as well as the SDK) may no longer be included with Linux distros. They retired the “Operating System Distributor License for Java” (DLJ) and decided that distros should compile their own packages using the Open Source codebase of OpenJDK,.which Oracle itself uses as well for their binary builds. Slackware has not seen an update to its Java packages since that announcement. I have been busy in the past weeks preparing a set of Slackware OpenJDK packages. That was not trivial, since OpenJDK requires several additional packages in order to be compiled from source. It also required changes to Slackware’s gcc-java and seamonkey packages since I wanted OpenJDK to be “bootstrapped” against GCC’s java compiler. I could have chosen the easy way and compile it using a binary Java package downloaded from Oracle (which is acceptable as long as I do not re-distribute the downloaded binaries) but I had my reasons for not doing that – see below. I have now a working OpenJDK installed on my Slackware-current laptop, including a web-browser plugin for Java. That looks promising and I have uploaded all my work to the Slackware server so that Pat V. can have a look at it and ultimately add it to Slackware.

I had a goal in mind when I decided to take the hard way and compile OpenJDK using the (not fully compliant) GCC Java compiler It is the only way that we may finally be able to create a Java package for ARMedslack! The ARM port of Slackware currently has no Java support at all and I intend to change that.

You may ask, where this interest in Slackware ARM comes from. You have not read my recent posts perhaps?

It’s quite simple really. Because I think this platform is ready for prime time. The first powerful ARM based laptops have finally shown up. They are currently mostly running Android – think of the ASUS Transformer (powered by a Tegra 2 – essentially the chip which also powers a lot of the new Android tablets). You can barely fail to notice that all the big distros (Arch Linux, Gentoo, Fedora, Debian, Ubuntu) are working hard on a port to these new ARM platforms. I believe that Slackware should be part of that effort.

So, first of all, I am eagerly waiting for the Raspberry Pi devices to become available for sale. A computer for 35 dollars, that is something nobody should be able to resist. I want one of those and install ARMedslack on it. Stuart Winter is willing to port ARMedslack to this new device (hopefully the kernel is the only package which needs to be crafted specifically for the new ARM CPU). And second, I already bought another ARM based computer: the TrimSlice Pro. The TrimSlice is of an entirely different league than the low-spec Raspberry Pi. It runs on the same Nvidia Tegra-2 chip I already mentioned earlier. The Tegra 2 has a dual-core ARM CPU running at 1 GHz and a GeForce GPU which should be capable of 1080p full-screen HD video payback.The TrimSlice also has 1 GB of RAM and comes pre-installed with Ubuntu Linux on a 32 GB SSD harddisk… now that screams to be replaced with Slackware. This device should be fast enough to be used for compilation of ARM packages. Stuart is working on a kernel for this device, but there are some complications. The TrimSlice uses a USB to SATA bridge to connect the SSD. That causes USB disconnects with the ARMedslack kernel when large amounts of data are written. Stuart will undoubtedly find a fix for that in the end.

And while Stuart works on the ARMedslack packages I have been considering what would be a second port to ARM. The crux is that ARMedslack supports a wide range of ARM computers (which is linked to the history of the port) and therefore does not profit from the new CPU’s which also have hardware floating point units (FPU). I want to try and start a port to “ARM hard float” architecture which should give it a big speed boost compared to ARMedslack. Of course, this means that the new port will not run on older devices like the SheevaPlug, or ARM based NAS/mediaplayer boxes which typically run cusom Debian distributions. I spent part of my holiday to write a script which cross-compiles a basic toolchain (kernel, binutils, glibc, gcc, bash and other necessary stuff) which can be used to compile the rest of Slackware. I now have a small root filesystem (containing a “armv7hl-slackware-linux-gnueabi” target) ready for testing on the TrimSlice. If only there is enough time left… my short X-Mas holiday is nearing its end, and with it the room to experiment.

Eric

Recipe: traditional moussaka

Last weekend I prepared another diner which I had not cooked for a very long time.

I love rich oven dishes, and traditional greek “moussaka” is a long-time favourite of mine. I learnt how to cook it while I lived in a student home.

There are many variants of moussaka which do not honour the original method of preparation. Things like potatoes do not belong in moussaka.. while cinnamon, oregano and lots of vegetable oil do belong! I try to follow a more traditional approach. Any greek readers, please come up with improvements if your Mom had a different recipe!

The result will be a heavenly smell in your kitchen while the dish is finishing in the oven. Your belly will be all warm and fuzzy after emptying your plate.

The prime ingredient in moussaka is the aubergine, or eggplant. This fruit (commonly mistaken for a vegetable!)  is one of the family of nightshades – like tomatoes, cayenne, and even tobacco. It’s easy to spot in the pic below that this is a fruit – it contains seeds. Like with tomatoes and potatoes, there is a certain bitterness in the eggplant which you can eliminate by “sweating”, steaming or grilling. I am going to grill the eggplant.

Another ingredient which deserves a separate mention, is the béchamel sauce. This sauce of butter, flour and milk is thought by many people to be difficult to make, but in fact it is dead easy, The béchamel, along with grated cheese, will create a beautiful soft-crunchy crust on top of the moussaka.

Ingredients (4 persons):

  • One eggplant
  • one onion, chopped up
  • three cloves of garlic, chopped up (do not squeeze them out)
  • 400 grams of minced lamb meat (beef will do as well)
  • one can of peeled tomatoes
  • 150ml olive oil (sunflower oil will do)
  • plenty of cinnamon and oregano
  • pepper, salt
  • 50 grams of butter
  • 50 grams of flour
  • 1/2 liter of milk
  • 200 grams of grated young cheese

Preparation:

  • Pre-heat the oven to 200°C
  • First we create the meat/tomato sauce. Heat a few tablespoons of oil in a pan, add the chopped onion and garlic and let it cook for a few minutes until the onion gets a nice golden-brown color. Keep stirring with a wooden spoon to prevent the garlic from getting black and bitter.
  • Add the minced meat, turn up the heat and let it cook for a few minutes until all of the meat has turned brown. Add salt and pepper to taste. Add lots of cinnamon powder and oregano. Don’t hold back! In this dish, more is better. In particular, you can never have too much cinnamon.
  • Leave the meat and onions to simmer on a low fire for a few minutes. Then turn up the heat under the pan again, and add the peeled tomatoes. If these are not chopped-up tomato parts, you cut the tomatoes up into smaller pieces before you add them to the pan. Allow the tomato to integrate with the meat and onions; there is a lot of liquid in the tomatoes which needs to boil away. Then turn down the heat and leave it to simmer on low heat with the lid on the pan. We will not need the meat sauce until later and we might just as well allow the flavors to mix for as long as possible – it will enhance the dish. Don’t forget to taste! It may require more salt and cinnamon.
  • We continue with the béchamel and the eggplant. You can work on these in parallel.

Eggplant:

  • If you have a grill-pan, put it on the stove and heat it up. If you do not have a grill-pan, you can do with a flat frying pan, or use the oven grill – we are going to grill the eggplant
  • Cut the top and bottom off the eggplant, removing the leaves. Cut the eggplant along its long side in slices of 0.5 cm (0.2 inch). Once exposed to the air, the slices will color brownish after a while so it is best to cut only a few slices at a time and apply the next step in the preparations.
  • Brush both sides of an eggplant slice with olive oil and place it in the grill-pan. Leave it on the grill for a minute or two and then turn it over. This will make it tender, eliminate the bitter taste and sweeten the eggplant. You can put several slices in the grill pan at a time, to speed up the process.

Béchamel:

  • Melt the butter in a pan (low heat) or in the microwave.
  • Add the flour (all at once) and keep stirring the mixture (with the heat kept low!) so that you get a smooth mixture. Let the mixture (the “roux”) cook on low heat for about 4 minutes, this will eliminate the floury taste. While stirring, take the pan off the fire from time to time to keep the flour from turning brown – we want the béchamel to keep its white color.
  • Gently, add the milk while you keep stirring the mix. Let it cook for another 10 minutes at least, stirring the béchamel sauce from time to time to keep it smooth and prevent burning. Then turn off the heat.

We continue with the final part:

  • Brush the inside of an oven dish with olive oil. More is better. The oil will prevent the eggplant from sticking to the dish when it bakes in the oven.
  • Cover the bottom of the oven dish with slices of grilled eggplant. On top of that, pour half of your meat/tomato sauce until it covers the eggplant. Then, add a new layer of eggplant slices and on top of that you pour the remaining half of the meat/tomato sauce. Sprinkle this with a generous amount of grated cheese. If you still have eggplant slices left, you can place those on top.
  • Grab the pan with the béchamel sauce,, and pour it over the other ingredients in the oven dish. It will trickle down into the dish, but the majority will remain on top. Sprinkle some more grated cheese over the béchamel. Not too much cheese, the béchamel must remain visible! We do not want a burnt cheese crust, we want to create a soft crust of cheese mixed with the béchamel.
  • Place the dish in the middle of your oven and let it bake for 20 minutes. The moussaka is ready when the crust starts turning light brown.

Serve it with some greek white wine like retsina.

I could eat this every week… but it took years to find an opportunity cook it because my son dislikes the taste of the eggplant. He still did not like it much… but he ate it all anyway.

Enjoy your meal!

Eric

Raspberry Pi deserves Slackware

Some time ago I ran into this website promoting a very cheap computer the size of a credit card. The Raspberry Pi is being created by a charitable foundation. It is designed to “plug into a TV or be combined with a touch screen for a low cost tablet“. Typically its target is “teaching computer programming to children“, but such a cheap computing device will certainly have “many other applications both in the developed and the developing world“.

You have to see the device to believe it, I guess. The videos and photos look very promising. It’s not in production yet but according to the developer team’s schedule first shipments should commence before the end of the year.

Its specifications are not stellar (256 MB of RAM will likely rule out the top-heavy desktop environments like KDE) but hey! it only costs 35 euros! And the ARM processor, a Broadcom BCM2835 SoC with a ARM1176JZF-S core seems to have good support in the Linux kernel (a patch that adds support to linux-3.0.4 is fairly trivial). Check out this video which shows the Raspberry Pi running Quake III in 1920×1080 resolution with 4x antialiasing.

There is a thread on LinuxQuestions which shows that it may in fact not be hard to boot Slackware – or rather, ARMedslack. Using the latest QEMU which supports the Broadcom’s ARM version, and a recent kernel compiled for ARM (see above), QEMU can successfully boot one of ARMedslack’s “mini rootfs” filesystem images.

So, I think that the Raspberry Pi deserves Slackware. If we are going to bring Slackware to the masses, this ARM device would be a nice vehicle. I am going to get myself one or two of them. Stuart Winter (ARMedslack developer) promised to help me with the nasty bits. We will see how this ends up – either incorporated into ARMedslack, or as a separate development tree hosted by me, or (nicest option but not a very realistic one perhaps) folded into the main Slackware tree. It would be cool to have the main tree expand to support a third architecture besides x86 and x86_64.

Cool, another project for my evergrowing TODO list! Oh my… I can’t even find the time to spend on another project that is itching at the back of my mind… I guess should at least make an effort to upload all of the OCR related packages I created a month ago.

Eric

Digitizing my paperback books

Part one: what do I want?

I hinted at this topic in a previous post. I have a big collection of (mostly) paperback Science Fiction books – some hardcover books too. I used to read a lot more in the pre-Internet days, nowadays it’s just during my holidays that I get enough time to read whole books in a short enough time… so many of those old paperbacks are 20-30 years old and yellowed.

In this digital age it would be appropriate to have digital versions of my books and save them from crumbling to dust. I am in anticipation of Sony’s new e-reader, the PRS-T1 which I want to buy once it is out:

This is a very nice device. It is also a lot cheaper than the previous generation Sony e-reader (the PRS-650) while at the same time adding wireless connectivity. This device needs content once I have it in my possession.

A lot of the “newer” books, and those written by contenporary authors can be purchased online, or downloaded from fan sites where people scan their own collections into EPUB or MOBI e-books.  That is all good and well, but on my bookshelves I have many dozens good books that will probably never see a new life as an e-book. That is very unfortunate… I had a lot of fun reading them and do not want to see them go into oblivion.

I decided to do something about this. I am going to try and describe (and hopefully implement) how I am going to digitize my book library. Note: at the moment this is all just ideas, “dreams” if you wish, although I have already found quite a bit of information on the Internet that I will be sharing with you. I want it to be more than just a dream.

What does one need to get a paper book converted into an e-book?

  1. the book’s pages need to be scanned
  2. the scanned bitmaps may have to be cleaned-up digitally (enhancing the contrast between characters and background, de-skewing or rotating the text blocks, …)
  3. I need an Optical Character Recognition (OCR) program to convert the bitmap images into character text
  4. I need an e-book editor to layout the bare text that I got from the OCR program – the ebook has to look largely like the original paper version.
  5. I want to use a library program to make my book catalogue available, to myself of course, to my e-reader device, and possibly to other interested parties.

And I want this to be as low-cost as possible. Any software that I am going to use for this should preferably be Open Source and run on Slackware.

Those are the main topics I will write about. Each of these topics deserves its own separate article. Why is that?

I can already see how this project will confront me with interesting challenges. I am going to write a multi-post story with interlinked articles (this being the first) in order to preserve this hobby project of mine for posterity. Having separate topic articles allows me to split up your feedback as well (heh… I hope I do get some feedback!), so that discussions about, say, scanning techniques will not interfere with talk about what is the best OCR program for Linux.

The articles are not going to be “static” per se. I value your feedback and important new insights will find their way back into the main text.

Let’s see where this ends. It is probably going to take days, or weeks,  to write. It delends a bit on Slackware development – if that picks up speed again, I will have less time for this ebook side show. But for the moment , there is silence in the ChangeLog.txt and I have time to spare.

Eric

KDE security fix, Flashplayer 11, random bla

KDE team have issued a security advisory (CVE-2011-3365) for the KSSL component in KDE 4.6 and 4.7. I have applied the proposed patch to fix the security hole and updated packages for kdelibs are available from my ktown repository, for both KDE 4.7.1 and KDE 4.6.5 (because I intend to keep that release for a while, it works very well with Slackware 13.37).

Direct links to the packages follow, but you can check out any of the available mirrors of course.

KDE 4.6.5:

KDE 4.7.1:

The new KDE 4.7.2 wich is right beyond the corner will have this fix incorporated.

 

Then there is the Adobe Flash Player.

Finally we have a Linux flash player for both 32bit and 64bit that is on the same terms as the MS Windows version. Yesterday, Adobe announced the official release of their Flash Player release 11 for all platforms. Some of you will cheer, others will moan, but nevertheless this is a milestone in 64bit Linux support. It was (in part) because of the availability of 64bit Flash for Linux that I started the 64bit Slackware port in 2008.

I have packages for you here:

Or on any of my package mirrors, like:

 

And Slackware-current, some people are speculating on huge updates in the near future because there has been such a long silence on the update front. Please do not get too disappointed if the amount of updates is not as big as you might hope. Sometimes, there is real life to take care of.

 

And then there was this:

I am pondering about another blog post, but the idea has not yet finalized in my mind. What it boils down to is, how should I digitize my rather big library of vintage Science Fiction books? I have many tens, maybe a hundred books that certainly will never be released in digital format, and I am looking at the tools to make the conversion. Slackware packages for all the (OCR and scan cleaning) software that I think I will need have been compiled but I hesitate to release them. Mainly because I have not yet tested them myself… ideas are welcome, especially ideas about how to go about the scanning process (I do not want to cut up my books). More to follow!

Cheers, Eric

« Older posts Newer posts »

© 2025 Alien Pastures

Theme by Anders NorenUp ↑