MikeTeo.net

A Software Developer’s Blog (Wanna Email Me?)

Archive for the ‘Linux’ Category

TrueType Font RPM for Fedora Core

Dec-21-2009 By miketeo

I have rpmbuild the msttcorefonts RPM from msttcorefonts-2.0-1.spec.
For FC12, you will encounter a chkfontpath dependency error when trying to install this rpm. Just rpm -i –nodeps msttcorefonts-2.0-1.noarch.rpm and re-login your X session.

Download the msttcorefonts-2.0-1.noarch.rpm.

Compiling runit on Fedora Core 11

Sep-8-2009 By miketeo

If you encounter the following error while trying to compile runit on a FC11 machine

[root@norma runit-2.0.0]# package/install
Linking ./src/* into ./compile…
Compiling everything in ./compile…
+ cd compile
+ exec make
./load runit unix.a byte.a -static
/usr/bin/ld: cannot find -lc

Try yum install glibc-static

Arduino IDE : USB Ports Not Found

Jun-27-2009 By miketeo

If you have upgraded or installed Fedora Core 11, you might find that your USB ports are not listed or the Serial Port menu is greyed out on the Arduino IDE. This is due to a change of group ownership for the /dev/ttyUSBx ports in FC11.

To resolve this, simply add your user (eg. myuser) to the dialout group in /etc/group like this:

dialout:x:18:myuser

Then logout from your desktop and re-login back again.

Upgrading from FC9/FC10 to FC11

Jun-23-2009 By miketeo

I have recently upgraded some of my Linux boxes from Fedora Core 9 and Core 10 to Fedora Core 11. Recent Fedora distros come with a preupgrade application which simplifies the upgrade process. It works well for some of my FC10 boxes, but I find that the preupgrade application has issues with RAIDs for the FC9 box.

I have upgraded 3 boxes using the DVD media (both 32-bits and 64-bits distros). After upgrading, it seems that I need to perform some additional steps in order to upgrade the entire application base to FC11.

The first few problems that you will see is that some of the softwares refuse to start, or hang. For example, the gnome terminal will start but refuse to accept any keystrokes in its window. My gnubiff won’t even start. And the worst: yum refuses to run! (No module named yum… Please go to this wiki FAQ…)

My solution as follows:

  1. Go to console. You can press <Ctrl> + <Alt> + <F2>. You should see a prompt for your ID. Sign in as root user with your root password.
  2. Download and install the FC11 yum rpm. If rpm reports that yum has already been installed, uninstall the existing yum: rpm -e –nodeps yum. Then install the new yum: rpm -i yum-3.2.22-4.fc11.noarch.rpm
  3. Rebuild the rpm database: rpm –rebuilddb
  4. Flush yum cache: yum clean all
  5. Then perform the upgrade: yum upgrade
  6. Reboot the machine when upgrade completes, and the whole machine is in FC11 “mode” now.

Huawei E169 and Linux NetworkManager

Mar-19-2009 By miketeo

My Huawei E169 used to be working fine with Linux NetworkManager under Fedora Core 10 until a recent yum upgrade. The NetworkManager now waits for some time (about 30 seconds) before it gives an error message on timeout. After some troubleshooting, the following files /etc/ppp/chap-secrets and /etc/ppp/pap-secrets need to have some changes in their permissions settings.

$> chmod 0660 /etc/ppp/chap-secrets /etc/ppp/pap-secrets

That solves the problem, and now I can access the Internet via my SingTel 3G network.