Mi blog lah! Το ιστολόγιό μου

27Feb/070

Open Font License (OFL) 1.1 Released

Dear OFL friends and reviewers,

We're pleased to finally announce the completion of the SIL Open Font
License version 1.1. This free and open license has been updated to improve
clarity, remove potential ambiguities, and make it easier to use for both
authors and users.

Visit the OFL web site for more information:

http://scripts.sil.org/ofl

A detailed list of changes can be found on the review page:

http://scripts.sil.org/ofl_review

The only notable change in usage is that authors must now explicitly list
any names that should be Reserved Font Names. The original name of the font
is no longer reserved by default.

Thanks to all of you who have helped us refine this license and make it even
easier to use and understand.

Victor Gaultney & Nicolas Spalinger

Source: http://openlists.sil.org/archives/ofl-discuss/2007-February/000160.html

The OFL is a free and open-source license specifically designed for the licensing of fonts.

23Feb/0713

Video playback problems (black) after installing Beryl (or Compiz)

Note: Here we describe a workaround. The proper solution is to fix the graphics drivers and the X.Org X server. Such work is taking place, and for several cases you do not need this workaround. Especially with newer versions of Linux.

You just installed your 3D Linux desktop and you are really enthusiastic about it. But when you try to play some videos, you get a strange black output. What's going on?
The common software video players that come with the Linux desktop are able to display the video stream to several types of output devices. This includes several types of output for the graphical interface, and also obscure output devices such as text mode, using ASCII characters.
The default output device is XVideo (or Xv) for players such as those based on GStreamer (totem) and VLC.
As you guessed, there is a bug with XVideo when using Beryl/Compiz. Therefore, to fix, you need to switch to another output device that works.
For GStreamer players (such as totem, the default movie player in GNOME, Ubuntu and so on), you need to run from the command line the command
gstreamer-properties
(with older distributions such as Ubuntu 6.06 there is an option in System/Preferences for this).
and pick
Video, then for Default Video Plugin choose X Window System (No Xv). Click on test to verify that it actually works. Click Close and you are set.
VLC is not installed by default in Ubuntu 6.10. You need to install manually using the Synaptic Package Manager (under System/Administration), once you have activated the Universe repository in Repositories.
Start VLC and click on Settings, then Preferences. Expand Video and then expand Output modules. You will notice several options for output device. How do we actually choose which one should be the active output device? Well, it appears it's a bit tricky. Select the item Output modules, and notice the checkbox at the bottom right that says Advanced options. Check the box, and now you have the option to select a different output device. Pick X11 video output, click on Save and you are set!

Update (17 Jun 2007): Added section at UbuntuGuide.org, How do I fix black windows during video playback.

21Feb/070

Hard disk boot sector invalid

Hard disk boot sector invalid
When you get this error when you boot your computer, you know something is terribly wrong.
Actually, in most cases it's not. What probably happened was that you did not have set a bootable partition on your booting hard disk.
How can one not set a partition as bootable? It can happen when you install a fresh Linux distribution using the manual partitioning option, and you shamelessly forgot to toggle the bootable flag on your Linux partition. However, this implies that you already got rid of WXP, so you are totally excused.
Another reason for the bootable flag missing is that you have erased the said partition and recreated it.

How do you set the bootable flag again?
You can boot with a installation CD/rescue CD and set it using the partitioning tool. There is no need to install again.
Since you already have Linux installed, you can boot with the Ubuntu installation CD and choose the last option, Boot from first hard disk, to boot of Linux. Then, use the distribution partitioning tool to set the bootable flag.
Update 23Feb07: The bootable flag has to be set on one of the primary partitions. It does not work if you set the bootable flag on a logical partition. Apparently the above error message comes from the BIOS, which blindly does an unneeded check to see if a primary partition (whatever primary partition) has the bootable flag set. The primary partition you set the flag on does not have to be a partition that you can boot from. Any primary partition will suffice. Once the BIOS relinquishes control to the MBR, GRUB takes over and brings you to your Linux distribution.

Tagged as: , , No Comments
17Feb/072

For how long have I been using my computer?

Do you want to check how many hours you have been using your computer/laptop?

Do you want to find out if that second-hand hard disk salesman is saying the truth?

Are you about to buy a second-hand laptop that had been used only sparingly?

You can figure out what's going on, with the help of your Linux box and the smartmontools package. Especially since I decided to keep my old hard disk that sits next to me.
Modern hard disks support a feature called Self-Monitoring, Analysis, and Reporting Technology (S.M.A.R.T.), which helps make them more reliable.

One of the data recorded by S.M.A.R.T. is the total number of hours a hard disk has been in operation. This is the S.M.A.R.T. attribute 09 called Power-On Hours (POH). When your computer is on, your hard disk is on as well, therefore you can get the total number
of hours your computer has been on. Let's see how we put all of these in action.

You need to install the smartmontools package, available from the standard Ubuntu repositories.

  1. Start System/Administration/Synaptic Package Manager and search for smartmontools. Select the package for installation and click to Apply.
  2. Assuming your hard disk corresponds to device /dev/hda, run the command sudo smartctl --all /dev/hda on a terminal window.

You will get a long list of information and attributes. Wade through the output and notice the attribute list and the line with ID 09.
On my system it is

ID# ATTRIBUTE_NAME   ...   UPDATED  WHEN_FAILED RAW_VALUE
9   Power_On_Hours     ...   Always                 -                      24

Here you can see that this hard disk has been in operation for 24 hours in total. Yes, it's a new hard disk.
If your hard disk is a bit exotic, you may see a strangely large raw value. Other manufacturers measure the time in minutes or seconds, so you need to convert accordingly.
Other information you may extra from S.M.A.R.T. include the temperature of the hard disk. The temperature has ID 194. For me it is

ID# ATTRIBUTE_NAME        ...   UPDATED  WHEN_FAILED RAW_VALUE
194 Temperature_Celsius  ...    Always                 -                     41

That is 41 degrees Celsius.

You can also perform self-tests on your hard disk in order to check if it is about to fail. In S.M.A.R.T. terminology there are short (1min duration) and long (30min duration) tests, and the last five results are saved in the hard disk non-volatile memory. The entry includes the number of hours the hard disk has been in operation as explained above. Therefore, when you loan a laptop to a hard working person that has to finish an essay, you can perform a test so that the current number of hours are recorded, and then perform another test when you receive it back. If you are said hard working person, leave the laptop on as much as possible.
Apparently, most USB/Firewire caddies/enclosures do not pass the S.M.A.R.T. information, therefore you cannot access the relevant attributes. You need to connect the hard disk on the IDE/SCSI/etc channel.

   

Switch to our mobile site