Archiv für English language

Building a DIY Audio Power Amplifier

After some more or less failed attempts to design and build my own Amp on a solderless breadboard I decided to solder up a pre-made schematic this time.

The circuit is designed by Douglas Self: http://www.douglas-self.com/ampins/dipa/dipa.htm
I didn’t always follow the circuit exactly, especially regarding component values and the choice of transistors. Even so I have to say it doesn’t sound half bad.

Any distortion in the video comes from my mic not being set up properly – sorry about that.

Music used:
* Evening Star – Princess of the Sun
* Emily Jones – Wonderbolt (Piano)
* Aviators – The Fight Within (instrumental)
* [I think the next one was by Arktic Skies, not sure though]
* John Pan – Blown in the Wind (cover)

PS: I will probably continue this channel (CClassicVideos) entirely on English.

Bypassing the Boot-Lock on my ThinkPad

– OR: How I used a floppy disk to pwn a security system –

I recently got a Lenovo ThinkPad T430 from my employer. My first thought after I saw that it was running Windows XP was “Can I make it run Linux?”. Luckily we weren’t forbidden to boot another OS than the stock one on it. Admittedly, they didn’t explicitly allow us to do it either. To be accurate, they didn’t say a single thing on what we are supposed to do with these computers. So I can’t be wrong if I don’t change anything on the system, can I?

Anyways, to the fun part! Officially, the notebook has two Windows-systems on it. One for use in the company and one for “private” use. The BIOS is password protected and booting from any device other than the internal hard drive has been disabled. Since I am definitely not allowed to modify the hardware on this computer, I didn’t even start thinking about swapping the hard drive or similar things. Instead, I focused on the software. One thing immediately caught my eye, they are using a program called “eXtended FDisk” to select the OS on boot.

The used bootmanager: eXtended FDisk

The used bootmanager: eXtended FDisk

Apart from the fact that this is a beta version, I noticed the little text on the bottom saying “F1/F2: Disk A:”. Sounds like we might be able to boot using a Floppy, and sure we are. So I grabbed my USB floppy drive and one of my old DOS disks and threw it in. A few seconds later I had MS-DOS running on my laptop. Quickly I remembered that running MS-DOS on that machine wasn’t my goal and I continued pursuing my actual target. Since booting Linux from a floppy disk (if even possible) isn’t much fun, I somehow needed to boot an OS from a drive other than A. For the time being, I went the obvious path and used that I am able to execute code using a floppy disk. This code may also be another bootloader. After a few tries, I settled with Plop (plpbt).

I plugged in my USB flash drive with Ubuntu Linux on it, inserted the Plop-disk into my FDD and restarted the computer. And there it was: A boot option for the flash drive.

Plop Bootmanager

Plop Bootmanager

For some reason, I was getting a blank screen when trying to boot the MBR of my flash drive using Plop. However, this can be circumvented by pressing “q” in the main menu and selecting the partition manually. In my case it was HDB Partition 2.

HDD/Partition selector

Just select the correct drive and partition…

Just ignore the warning regarding that the bootsector is the MBR if it appears and press “Y” (or “Z” in case you have German keyboard layout).

Ignore the warning

Simply ignore the warning and press Y.

Shortly after and to conclude the exercise for now, I had this on my screen:

Finally got Linux to boot!

Finally got Linux to boot!

Final thoughts
I successfully completed what I wanted to do. It might be a bit convoluted and having to use a floppy disk isn’t the fastest and quietest way to boot a computer, but for using this machine at home, it’s all right.

However, this security hole did not have to be in the system since eXtended FDisk supports password protection for the boot-from-floppy option. Also, as a infosec person, I would never recommend deploying software in beta status on “production devices”. Maybe they just thought “Ah, who even has floppy drives these days?! We don’t need to care about this!”

One path which I did not pursue at all is trying to reconfigure eXtended FDisk. This should also be possible and we would not need a floppy drive at all. The sweet thing about the FDD-solution is that it can not be traced at all whereas the other solutions require changes to the installed system.

Getting Japanese characters to work in Raspbmc

screenshot003crop

I really like using the Raspberry Pi in order to listen to my favorite music and watch anime on it. But with the default installation of Raspbmc, Japanese characters can not be displayed. After some fiddling around with the configuration, I figured out how to enable them anyway. If you have any questions or additions, feel free to post them in the comment section below.

Now, let’s get started:

  1. Install Raspbmc
  2. Open a ssh-session or open a terminal on the device itself
  3. Enter the following command and choose the Japanese UTF-8 locale:
    sudo dpkg-reconfigure locales
        [*] ja_JP.UTF-8 UTF-8
  4. Go back into XBMC and navigate to System – Settings – Appearance – International and set the Character set to Japanese (Shift-JIS)
  5. Now open Skins and change the font from Skin default to Arial based

When changing menu items, make sure to wait a couple of seconds before moving on. Otherwise, the changes may not be applied.

In case you don’t like Arial as default font, there’s another way to solve this problem. To do this, go through all steps except for the last one. Instead, do the following:

  1. Look for a font you’d like to use
  2. Make sure it supports Japanese characters. (Just check whether they work on your PC by using the font for example in a word processor.)
  3. Open the fonts-folder of the confluence-skin:
    /home/pi/.xbmc-current/xbmc-bin/share/xbmc/addons/skin.confluence/fonts
  4. Replace Roboto-Bold.ttf and Roboto-Regular.ttf with the font you chose earlier.

I hope this information was helpful. As I said, if you have any comments or questions, just post them below.