mok0's world

Sacrosanct Linux feature dies

Posted in Linux, Ubuntu by mok0 on March 23, 2012

I’ve been using Linux since 1996. Since then, the OS has undergone an amazing development, and all distributions provide an impressive high-resolution graphical interface. However, one feature has remained sacrosanct: the 6 virtual terminals. In the old days, when you had to provide timings for the video card and manually edit the xfree86 config file, it was easy to mess up the graphics display. But then, CTRL-Alt-F1 to the rescue! It was ALWAYS possible to get a terminal and consequently access to the operating system. And, in addition, most of the GUI versions of system setup programs had a TUI analogue, that could be run from the 80 x 24 terminal.

Until now. Ubuntu 12.04 BREAKS the virtual terminals on many older video cards, because it insists in using frame buffer mode, presumbly to provide fancy, meaningless, silly graphics for the boot screen. This is what my virtual terminals looks like now:

Ubuntu 12.04 Virtual Terminal

 

This is a scandal, no more, no less! Breaking the virtual terminals, that ALWAYS have been available, no matter what video card you had in your computer, breaks the promise that you always can obtain a console to control Linux. Simply a very, very bad design decision.

Oneiric on the Dell Mini 10: Nope

Posted in Dell Mini 10, Ubuntu by mok0 on January 28, 2012

A couple of months ago, I downloaded the Ubuntu 11.10 installer and put it on an USB stick. Judging from the discussions on the net, I might be one of the only people on the planet who actually *like* Unity, and I was really looking forward to getting it on my netbook. In my opinion, Oneiric Ocelot is a terrific release. I have it on my workstation and I like it a lot.

Unfortunately, the install on my miserable Dell Mini 10 failed. It dies and freezes. Frustration. I wanted to blog about it, but didn’t get around it until now. So here is what happens. The following screenshots were taken with my smartphone, that is the only way I could make screendumps.

Shortly after the Ubuntu 11.10 screen, with the five dots, the following appears:

After some seconds the purple background color turns black:

… and then the booting process shuts down:

I have no idea what’s going on, but it seems to have something to do with the wireless driver. Next thing to try is to boot while the Dell Mini 10 is wired to the network.

Disk Quota Exceeded?

Posted in Debian, Linux, Ubuntu by mok0 on April 11, 2011

The disk quota system in Linux is quite old, and if you have a distributed workstation environment with NFS mounted shares it is not possible in a convenient way to inform users that they have exceeded their disk limits.

So we created a simple disk quota warning system, written in Python, that works using the notification interface (libnotify). A user who has exceeded the disk quota is then at regular intervals presented with a pop-up warning like the one shown in the figure below.

disk quota exceeded pop-up notice

The quotawarn system is divided into three parts. Two of them run on the file server, and one on the users workstation, under the users’ own UID.

On the file server, there is a program called quotawarn.cron, which (duh!) should be run at regular intervals by cron. This program simply runs repquota and squirrels away the information in a convenient format. Currently, this is simply a pickled Python dictionary indexed by UID, but could of course also be a fancier database storing historical data on each user’s disk usage.

The second program on the server is a CGI script. Using the standard web interface lets us rely on the access settings in the HTTP server, thus minimizing the need to program a special security system, and relieving the burden on the sysadm of learning and maintaining yet another access control system.

Quotawarn.cgi responds to messages from the network, replying to requests for specific UIDs by transferring the data for that user in JSON format. Or, optionally, by creating an HTML page with the data of all users.

On each workstation, the notification script quotawarn is started when the user logs on. The sysadm can achieve this by placing an entry in /usr/share/autostart. The program will ask for data from quotawarn.cgi on the file server, and if the user is under the disk quota limit, the program will exit without any more noise. If, however, the users disk quota is exceeded, the program will pop up a notification (shown below). This will continue at regular intervals (set by the sysadm).

A second notification system, yet to be developed, could hook into Ubuntu’s motd system, and provide the necessary information when the user logs on via an ssh connection to the network.

quotawarn system diagram

I have created a project on Launchpad for quotawarn in the hope that others would like to contribute to the project, and make it more generally usable. Although an attempt has been made to make the system general, we have not been able to test it in other settings than our own. So, if this has whet your appetite, please feel free to branch the project and contribute!

Free and completely Ubuntu (2)

Posted in Ubuntu by mok0 on February 12, 2011

The other day, I reported here that Tuesday evening (Feb. 8.), the popular tech-review program on danish public television channel DR2 “So Ein Ding…” dedicated an entire episode to Ubuntu.

A commenter asked for a translation, so here it is, including the program host, Nicolaj Sonne’s evocative sound effects.

Hey!

Today we jump in, and go all-in with Open Source. I have purchased a compltely new Low-budget computer, nuked Windows, and installed the free OS Ubuntu. In other words, I don’t need to spend one more Krone on this computer!

Welcome to this episode of “So ein Ding”!

1:35 As always, we are playing with open cards, and this part will be a bit different “Ding” than usual. The thing is, a computer OS is a seriously complicated thing. Imagine you arrive in a new city. It will not take long before you can find your way around, but it will take a few years before you know every sneaky little watering-hole from Christianshavn to Frederiksberg. And to stay within that picture, there are three different cities in the land of Operating Systems: Windows, Mac OS and Linux.

My first PC was a 486DX. About 15 years ago, I installed Windows on it, and I have used that ever since. Not on an “ultra-user” level, buuuut… I have re-installed one driver or another now and then.

1:42 Then about five years ago, I was forced to re-school in another OS, namely Mac OS. I got a new boss, who told me, “hey, here in the firm, we use computers with apples on, period.”

About two weeks ago, I started using Ubuntu. I have used Ubuntu before, and other  Linux versions in the same family as Ubuntu, but it was rather sporadic.

So you can rightfully say, I am a completely green Ubuntologue, and it it these experiences we are going to talk about today.

2:17 So now, Ladies and Gentlemen, we present the danish sneak-preview on “This is how you install an operating system”.  Perhaps it will get your cold-sweat running down your back and your eyes are flickering, when words like: “boot”,  “partition”, “NTFS”, “ext4”, and so on, fly through the air. But hang on, because if you do that, you will be free-wheeling software-wise in the all foreseeable future.

You go to Ubuntu.com, press “download” and then you  fetch a file called “an image”, burn it to a CD or put it on a USB-stick.

And already now, it is obvious to see that they want customers in the shop, because there is a super, super easy step-by-step guide. Just follow that!

Well,  I did not need the pre-installed Windows version, so ummphh, it got the knife.

Regarding the installation, it was around 15 minutes, click, click, click, a cup of coffee, and then, everything worked. All key-combos, turn the backlighting up and down, Wi-Fi on/off, sound, and things like that. Everything apparently worked, it was fantastic!

THEN the system proposed an update, and, from old habit, YES! I want that update. It took around 10 minutes, and then I came back to this: a computer, where neither mouse nor keyboard works!

No reaction what-so-ever. Then I thought, perhaps, if I attach an external USB mouse and USB keyboard. That worked, then I could google a bit around, and I discovered, I was not the only one losing contact with the mouse and keyboard.

Well, that was a bit of a burn-out. The thing is, I had fetched — as usual, from habit — the newest 10.10 version of Ubuntu. Then I tried with Ubuntu 10.04 LTS — Long Term Support — you can read about it on Ubuntu’s home-page, it makes sense. I installed that, and that worked perfectly, updates and everything. Except ONE small thing, and that was: I had sound though the phone-jack, but not through the speakers!

IF your speakers don’t work but your phone-jack does, then you “just” need to open a terminal window, and write “sudo apt-get repository blah blah blah”.

You need to be good at googling, and you need to have a bit of courage. It is not rocket science but it is not something I would want to explain to my mother over the phone, aaaand: my mother is a programmer. Well, a programmer from the days when the IBM  1287 was the latest & greatest, and programs was something you wrote by hand, and then sent out to be punched by “punch-ladies” who would… punch your programs

The free OS Ubuntu is a part of  the Linux family which is open source software. Ubuntu means, loosely translated:  “I am who I am because of who we all are.” What a bunch of hippie smoke! 😉

But it is not all psycodelic, there is a meaning to the madness, Ubuntu is one of the more well-known open-source software projects, and in brief, “open source” means that the “recipe”, the source, is freely available. This is NOT true for Mac Os and Windows. There, the engine room is shut and locked!

Even though Ubuntu is entirely free, it is presumably neither security-wise or economically completely out in the woods, because e.g. the French parliament, the French police, and the Swedish police all use Ubuntu.

Ubuntu is, as mentioned, a part of the Linux family. “Linux what-creature?”. Well, you meet Linux really often! Six out of ten times you write http://www.some-homepage.dk, there is a Linux server in the other end.

6:40 And now, the Ubuntu-sun rises! [shows the Ubuntu install ID like a rising sun] I now have a computer, completely without pre-installed Windows, where everything works!

Here, right in the middle of the graphical user interface, you will relatively quickly feel at home. Things are organized a bit in-between Windows and MacOSX But, with respect to the tightness of things, where applications are found, files, folder-structure and so on, it is probably more like Mac OSX.

But, what about compatibility? Well, those days, where computers could not speak to each other… it’s no longer like that. You can easily create a file on a Ubuntu computer, put that file on a USB-stick, put that into a Mac, burn a CD, and then read that CD on a Windows machine. It is not a problem. So yes, you can easily send a mail to your grandma, with holidays pictures, music and video. Even if your grandma uses Ubuntu, everything will work just fine.

There IS lots of software, that only works for e.g. Windows or Mac OS, and if you save a fike in that kind of software, then you cannot open it in Ubuntu… at least it is not certain that you can.

8:00  Tjjj , tjjj, tjj, tjj [plays around with the UI] …  In spite of fancy animations, there are some things I don’t think are so polished in Ubuntu as they are under Windows and Mac OS, and an example is navigating between programs with keystrokes while you are grabbing something with the mouse. If we look at an example here:  Here in my Mail program. I say; I want to make a mail, wwwyycchh, and then we write a mail, write-write-write. Then I realize, I would like to attach a photo to that mail. Then I use my key-strokes to get to my pictures. Then we look at it… here is a funny picture, we want to attach that. Then, aaannnchh, you can grab it with the mouse. On a Windows computer, on a Mac, I would be able to — while I’ve grabbed this image — to use key-combos to get back to the mail program… I can’t do that here! And it’s really irritating!

Over here,  on my typewriter, it doesn’t run Windows, it runs Mac OS, I can search files in a neat way. If I want to find all the photos I have taken with a Nokia N73 phone (jpeg because it is pictures)… in no time, all the photos I have taken with that phone, they are here! That is very smart, because this information is not something associated with the file-name, it is something inside the file itself that I can search. I can’t do that in Ubuntu, there isn’t that kind of meta-meta-meta search. That is something I miss enormously!

One of the things that make Ubuntu somewhat special is that it has a built-in appstore, a bit like you know it from the mobile-phone world: small programs you can fetch. It is called “Ubuntu Software Center” and it is loaded with software! Right now there are 32648 different items, that all are 100% verified and totally OK programs.

Then you can of course browse around after categories, but now, I would like to fetch a program that can make DVDs, that is DVD graphics and so on…. that’s called

DVD authoring. Let’s see [browses the appstore] … wwyyyccchh, “DVD-ripper”.. “trans”… bmm, bmm… “auto”… eetchhh… “Author DVDs and  slideshow” … Then I can click here, select “More Info”, then you can read a bit about what the program can do… it looks good… “Install”… and its free. Then it asks me for my password…. mmmwrrcchh

And that’s every time I want to alter something on the machine, then it asks for my password, which I created during the installation. Now it starts installing…. dddlidstchh

In the meantime, we can take a look, over here, on “Installed Software”, that is also shown in one place, and here I can see all the software that’s installed on the computer. And if I feel like… wwyyycchhh… pull the plug on one of them, I just click on “Remove”. No nonense.

And now, my DVD program should be installed: dlllyytchh boing! And, now, get started makeing DVDs!

But, take it easy, you are not forced to only “purchase” in Ubuntu’s Software Center. You can use everything you can find on the net. Of course, it must generally be made for Ubuntu… and note I say “generally”, because the thing is, I’ve fetched this little thing here, it’s called “Wine”. And then you can see here… Wine means “Wine Is Not an Emulator”… and then you can install Windows programs… wwyyyytccchhh. Now I’ve fetched “Picasa” in the Windows version, and it now runs  under Ubuntu. It is not certain that exactly your favourite program runs under this “Wine”, but then perhaps you can find another favourite program that does.

With Ubuntu I can use my netbank. But its €&&#%#% no thanks to NemId [danish net id organization], who absolutely offers NO support to Linux. Definitely! (Well. I’ll keep an eye on you!)

Then I can of course burn CDs DVD, i can import photos from my digital camera, I can write mails, I can create documents — it’s not called “Word”, it’s called “OpenOffice” — but I can by and large do everything I usually do. And naturally, all the things I do on the net, I can do here.  Even this fellow, a 3G modem, no problems. I put it in the USB port, Yes”, “Yes” and “Yes Sir” and then I was on the net in… 1.5 minute.

Perhaps I have been damned lucky with Ubuntu… perhaps not.

12:30 Very fine and very very free, but with that said, it must be said, before the Ubuntu-sun sets, that compared to the dominating, pre-installed alternative, I can’t really see the great advantage, except perhaps economy and ideology.  And! You don’t need to bother with these… [several dialogue boxes appear “Your TV can break down anytime”]. The final verdict is at the end of the program.

[Ubuntu gets 4/6]

Free and completely Ubuntu

Posted in Ubuntu by mok0 on February 10, 2011

Tuesday evening (Feb. 8.), the popular tech-review program on danish public television channel DR2 “So Ein Ding…” dedicated an entire episode to Ubuntu. The program host, Nikolaj Sonne, took Ubunto for a test spin, and gives a very positive, fair and balanced review. His final verdict ends on 4 out of 6, which is extremely good, especially considering that an upgrade broke his Maverick installation in the trials (no trackpad, no keyboard) and  he had to downgrade to Lucid.

You can view the episode here — in danish of course — but watch the program anyway for the nice graphics.

http://www.dr.dk/dr2/soeinding/?p=1599

80 x 25 no more…

Posted in Ubuntu by mok0 on January 12, 2010

On my workstation, I have a beautiful, large, Samsung SyncMaster 275, which is a 27.5″ monitor. The screen area measures around 58 x 37 cm, and the nominal resolution is 1920 x 1200 pixels.

The display is beautiful and crisp, and the fonts are nice and clear on the X-display, and Kubuntu looks lovely on the monitor. My wallpaper is an image of the stunning, intriguing and slightly eery MandelBulb 3-D fractal.

For a while, however, I’ve been annoyed with the virtual TTYs on my workstation. With a screen this size, the font size of the 25×80 terminal is approximately 1 cm. Working on it gives me a feeling of being teleported -25 years to an over sized version of the venerable DEC VT100 terminal. Another thing, the Kubuntu splash screen with the blue progress bar looked really ugly.

So today I did something about it. First, I ran:

sudo hwinfo --framebuffer

That gave me a rather long list of framebuffer modes. I chose the bottom one, that looked like this:

Mode 0x037d: 1920x1200 (+7680), 24 bits

The number I needed was 0x037d. Next step is to edit the /boot/grub/menu.lst and add:

vga=0x037d

to the default boot line, and reboot.

I now have 240 x 75 character terminal, and it looks beautiful! Now, I can run byobu with all its geeky goodness. And the Kubuntu boot-splash screen now looks really professional. Nice. There’s a slight problem with the status messages (from fsck) scrolling, but I can live with that for now.

Needless to say, I can’t show you a screendump… well, perhaps I’ll take a photo one of these days 🙂

I am a happy camper.

Tagged with:

Ubuntu on the Dell Mini 10 (3)

Posted in Dell Mini 10, Ubuntu by mok0 on May 27, 2009

A few people have asked if the psb X driver is stable running under jaunty. It is indeed… rock stable. So now that’s established, let’s move on to something else.

I really want the Dell to be a “mini-laptop” so I originally installed the ubuntu-desktop package. But I’ve felt that the response was a bit sluggish. The menus were just a few fractions of a second to appear, they kind of “rolled” on instead of just appearing etc. Not much, but enough to make it annoying.

So a few days ago, I installed Xubuntu, and it’s brilliant! It made a true, noticeable difference in response. The Mini 10 now appears really snappy! Xubuntu makes use of the XFCE4 window manager, it’s lightweight compared to the Gnome environment, but still comes with a bunch of applications like terminal, text editor, etc. etc. I am truly impressed with the amazing installation the Xubuntu team has created!

I must admit, I am a bit shameful, because I never thought of Xubuntu as a “real” distribution… just one that could be used on really old and slow hardware. Boy was I wrong!

The default setup of the Xubuntu desktop, as designed by the Xubuntu team, is almost exactly like the default Gnome desktop in Ubuntu. I bet you could exchange someones desktop and (s)he would hardly notice any difference. All the functionality is there, and it’s just as elegant. An additional bonus for those who don’t like Ubuntu’s human theme with its brown/beige colors, Xubuntu’s default color scheme is pretty bluish, very light on the eyes.

I’ve been running with Xubuntu for a few days now. One thing that I’ve noticed — also when running ubuntu-desktop — is that the way the default desktop is set up, with panels at the top and bottom of the screen is not well suited for the Mini 10’s wide 16:9 display. What you really need is screen real estate in the vertical direction, because you tend to scroll a lot, for example in Firefox. On my Kubuntu workstation, I have a 27″ Samsung SyncMaster wide screen, and there I can use the width of the screen to have two applications running side-by-side. But the Mini 10’s monitor is really too tiny to do that.

Another thing is that the desktop looks exactly like that of a workstation, with everything scaled down to a tiny size. It looks neat, but for most people — and especially netbook users who are not familiar with Linux — it’s probably not the best setup.

So, I have played a littlebit today with reorganizing the desktop layout, to make it something of an in-between of UNR and the standard desktop. Here is what I’ve come up with:

Xubuntu running a la UNR

Xubuntu running a la UNR

The panels now appear on the left and right edges of the screen, where there is plenty of real estate. The left panel is “controlling”. At the top is the “Applications” menu, then the snapshot applet I used to make the screenshot (really doesn’t belong there). Third and fourth from the top is “Places” and “Help”, which are also on the standard top panel. Next is the desktop switcher (you really need lots of desktops with this small screen). At the bottom is the applet to hide all the application windows, so you can get to the launcher icons on the root.

The right panel is “informational”. From the top, a clock, a weather applet, the notification window (with Ubuntu One, battery, wifi and bluetooth monitors), and finally at the bottom (not visible on the screenshot) I’ve put the icon box showing running apps on that desktop.

The root window has some applications grouped in “Network”, “Office” and “System” areas. With a customized wallpaper image with labels and squares this could be elaborated even further. I have no need for that though :-).

I am very pleased with the setup as it has developed so far. I think Xubuntu, installed with lpia architecture packages, and with a simplified desktop theme is very close to the ideal setup for a netbook. Perhaps something to consider for the Xubuntu team? An XUNRR package? (Xubuntu UNR Revisited :-))

Ubuntu on the Dell Mini 10 (2)

Posted in Dell Mini 10, Ubuntu by mok0 on May 25, 2009

Great news! The Dell Mini 10 now runs on Ubuntu 9.04 at full nominal resolution of 1024  x  576!

What has happened is that the Ubuntu Mobile Team has compiled and packaged kernel modules, X.org drivers, libraries to interface to kernel DRM services, etc. etc. for the Poulsbo chipset and made them available on their PPA.

Remember from my previous post, that my Mini 10 was running using the VESA driver for X. All I had to do to switch to the psb driver was to create the file /etc/apt/sources.list.d/ubuntu-mobile.list with the following content:

deb http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/ubuntu-mobile/ppa/ubuntu jaunty main

Then,

apt-get update
apt-get install xserver-xorg-video-psb

and reboot! The Dell Mini 10 then came alive — after a bit of thinking — with the display at the correct resolution, and the little display just looked stunningly bright, crisp and sharp!

This is really great news to the many owners of Dell Mini 10 and 12 — as well as other Poulsbo based netbooks — that want to run Ubuntu Jaunty.

Kudos and many thanks to the Ubuntu Mobile Team for their effort and a job well done!

Ubuntu on the Dell mini 10 (1)

Posted in Dell Mini 10, Ubuntu by mok0 on May 22, 2009

I recently purchased a Dell Mini 10 notebook. I’ve been wanting to get a netbook for some time, and I was planning to one of the Asus EEE series. However, looking at one at the local computer store, I found it a bit “plastic-y”. I’ve always heard that Dell computers have a good build quality, so one morning, on a whim, I ordered a Dell. I told the salesman that I had no use for Windows XP. He said there was no price on it, but gave me a discount of around 26 Euro. My suspicion is that Microsoft allows Dell to install XP for free.

Now that I have it, I’m a bit disappointed in the Dell’s build quality. I find the Mini 10 a bit plastic-y too. But then, I’m used to the solid feel of my PowerBook G4, and in build quality, nothing comes close to Apple I guess.

Apart from that, the Mini 10 has some really nice features, among others I really like the touchpad without buttons. From the Mac, I am used to using gestures on the touchpad, and I can reveal that it works nearly perfectly under Ubuntu 9.04. I also really like the keyboard, which is about the same size as my Cherry 4100 keyboard that I use on my workstations. In fact, everything works… except the graphics… but more on that later.

Initially, I was confused by the fact that Ubuntu recommends that you install the UNR version on all netbooks, but that is for the i386 architecture only, and I wanted to use lpia, because it’s optimized for the Atom processor and has been reported to run better, and give better battery life.

So instead of UNR, I chose to download the MID version of Ubuntu which installs lpia architecture packages.

I put the image file on an USB key following the instructions on the download page . I then booted up the Mini 10 with the pre-installed XP — just to make sure that it worked. When the XP installation came to the point where you have to accept the license, it felt REALLY good to hit the “No” button :-).  The XP install process then rebooted the Mini 10 from the USB key.

So I installed the Ubuntu-MID version, zapping XP with 2 ext4 partitions (/ and /home plus 5Gb swap). Everything went very smooth and the Mini 10 sprung to life.

The MID version by default installs a very simple window manager; it seems to work fine but was unfamiliar to me (and after all, the Mini 10 is not MID device) so I installed ubuntu-desktop. It works very well. (I am actually a Kubuntu user, but KDE4 is not at all suited for the limited resolution on the notebook.)

Every worked out of the box: WiFi, bluetooth, sound, even the little camera. BUT, the machine runs at resolution 800 x 576 so images and fonts look a bit “squished”.  The Mini 10 is based on the Poulsbo chipset and Intel’s GMA-500 graphics chip. There’s been a lot of chatter on the net on the lack of Linux drivers from Intel for these chips. You can google and see for yourself. The situation for Linux is pretty bad, since the Poulsbo chipset is appearing in more and more netbook computers.

To cut a long story short, X does not recognize the GMA-500 graphics chip, so it uses the VESA driver. The native resolution on the Mini 10 is 1024 x 576, but the VESA driver refuses to use that resolution. I have tried various things, i.e. specifying the modeline, but to no avail. X always returns to 800 x 576. So for now, I’ve settled and am using that resolution. Another thing is that there’s no acceleration and glxgears runs pathetically slow (25-30 fps) but the Mini 10 is perfectly usable as a netbook despite of this.

There’s an effort to get drivers for the Poulsbo chipset in shape, hopefully that will result in something soon.