Tag Archives: ubuntu

Have Pidgin Beep at You Through the PC Speaker

This post will show you how to make Pidgin beep at you through your PC speaker when an event occurs. The PC speaker is NOT the speaker which plays music for you. It’s the speaker that makes a beep when your computer turns on or when you do something wrong in the terminal.

There are a couple of different reasons why you might want to have Pidgin beep at you through the PC speaker instead of through your normal audio output device. Both of these scenarios have been applicable to me over the years.

Scenario 1 : You want computer volume down, but want an audible notification of new messages

I have left my headphones hooked up, and walked away only to find out later that a friend had sent me messages wondering where I was. At other times I have turned the computer volume down while listening to music late at night only to be unable to hear Pidgin in the din of day.

Scenario 2: You don’t have speakers hooked up to your computer, but want to hear when a message comes in

This is my current setup, and has been for quite a while. I have a laptop for taking work with me and for watching videos on, but when I’m at my desktop it’s because there’s something so important to do on the computer that I can’t do it while lounging on the couch. Usually that means I won’t have a video or even music going. Basically it’s a work station, and if I need sound I can grab my laptop.

When doing development though, I don’t want to miss a co-worker’s incoming message. And I definitely don’t want to miss a message from my wife!

There is a built in option in Pidgin to use a Console Beep, but if you want more than just a simple beep, you’ll need to follow these instructions. The following instructions apply to Ubuntu Linux 9.10 and may or may not apply to other versions of Ubuntu and/or Linux.

Step 1 : Install the Beep Program

Beep lets you easily play different length and frequency beeps. Go ahead and install it with

$ sudo aptitude install beep

Step 2: Check if You Have Beep Power

Run the command ‘beep’. If you get a beep,  you’re in good shape. If not…

1) Verify that the pcspkr kernel module is enabled

$ lsmod | grep pcspkr

2) If it isn’t, try enabling with modprobe for testing

$ sudo modprobe pcspkr

3) If that works, add pcspkr to /etc/modules

Step 3 : Find a Nice Beep Command

The command I use for my beeps is :

$ beep -l 90 -f  1000 -n -l 200 -f 2000 -n -l 100 -f 1000 -n -l 75 -f 500

-l — The length (in milliseconds)

-f — The frequency

-n — Start a new beep

So my Pidgin alert sound is 4 beeps which go from 1000Mhz to 2000Mhz then down to 500Mhz. It’s different enough that I know it’s an incoming chat message and not some other computer beeping noise.

Step 4: Add Your Command To Pidgin

In Pidgin, open the Preferences page from the Tools menu.

Under the Sounds tab, select Command as your method. Enter your beep command into the command text box. Close the preference pane.

Configure Pidgin to beep through the PC Speaker instead of through normal audio out

You’re all set, Enjoy!

Posted in Computers, Something Interesting | Tagged , | 1 Comment

EEEPC Touchscreen with Ubuntu Mobile

Once upon a time An EeePC 701 was a brand new toy and I had big plans for a touchscreen  hack with Ubuntu Mobile Edition.

I ended up frying the touchscreen due to soldering the wrong spot, though I ran Ubuntu Mobile for some time. By now Ubuntu Mobile and the EeePC are several versions beyond what I had at the time. Now I have a non-touchscreen Thinkpad for my laptop and I use my EeePC as a relatively energy efficient home media server and Asterisk server.

Since I’m not even using my EeePC as a laptop anymore, I’m not even up to date on that any more. So when I moved to WordPress, I abandoned my EeePC pages. Keep Googleing, and I hope you find what you’re looking for!

Posted in Computers, Projects | Tagged , | Leave a comment

Ubuntu on an External USB harddrive

Goal

Ubuntu on an external USB HD, which can be plugged in to any USB bootable computer (x86) and run. This entails:

  • GRUB on the HDs MBR
  • Hardware auto-detection at boot time

Our setup

I worked on this with a friend. We used:

  • HP Compaq dc7600 computer
  • Western Digital 80 GB USB laptop hard drive (bus powered)
  • Ubuntu Edgy (6.10) Desktop install CD

This page is OLD and probably contains errors, out of date information, security flaws or other problems. I am keeping it around because it might be helpful to someone. If you can believe it, back in the day (Ubuntu 6.10) installing Ubuntu on an external drive really was a good  bit of work. In my opinion, making the X server basically always work has been the greatest improvement in Linux Land since 2006.

How to

  1. Remove all internal HDs from the computer
    • GRUB by default installs to the first HD. We found this to be the simplest way to make it install to the correct location
  2. Boot from the Ubuntu install CD, with the USB drive connected
  3. Run the Ubuntu installer
    • You may want to manually partition the drive so that you have a portion of the disk in FAT 32 format. If you do this, be sure to mark the linux partition as bootable! That will make it easy to access your files from the USB drive without booting into Linux
    • When you’re done with the installer CONTINUE USING THE LIVE CD
  4. Modify GRUB’s menu.lst file on the new install
    • Use the Gnome Partition Editor (System->Administration menu -> GNOME Partition Editor) to mount the newly created root partition
    • Locate the menu.lst file. It should be at boot/GRUB/menu.lst
    • Open a terminal and type “gksudo gedit “, then drag the menu.lst file to the terminal, then press ENTER. The file should open
    • Find the line in the menu.lst file that says “kopt=root=UUID=(Long HEX number here)”. Copy from “root=UUID=” through the end of the HEX number.
    • Replace all instances of root=/dev/sda1 (where sda1 is the partition you installed to) and replace them with the “root=HEX-NUMBER” line.
    • This is to make GRUB find the HD no matter what device it shows up as.
    • Save and close the file
  5. Modify the gdm init script to reconfigure the graphics card each time it starts
    • In the terminal, type “gksudo gedit ” again, but this time drag the file etc/init.d/gdm from the new install
    • Find the line that says “start)”.
    • Insert a new line below the “start)” line that says “dpkg-reconfigure -fnoninteractive –no-reload -phigh xserver-xorg” (this auto reconfigures the xserver. I believe it’s the same command used in the Ubuntu Live CD)
    • Save and close the file

  6. Add an updated sources.list
    • For some packages that we need to install, we will need to access more than the default set of software Ubuntu provides. To do this, we will update our apt config file. Another page on this site talks more about apt.
    • Download this new sources.list file to your desktop.
    • In a terminal type “sudo cp ~/Desktop/sources.list “
    • Find the old sources.list file at etc/apt/sources.list on your new install, and drag it to the terminal
    • Press ENTER and the old file will be overwritten
  7. Shutdown, disconnect the HD, and you should be set!

Issues

  • GRUB wants to be on hd0 (the first HD the BIOS sees). In some BIOSes, simply selecting to boot from USB is enough to make this the case. On others, the boot order makes a difference. If you are selecting to boot from USB, but get GRUB errors, try changing the default boot order.
  • This would probably work in a very similar fashion on other distros. Ubuntu Edgy uses volume IDs in the fstab which helps this work. That may not be the case for other distros
  • Other? — We only had a handfull of computers to test this on so far
Posted in Computers, Projects | Tagged , , | Leave a comment