Tuesday, December 21, 2010

Rebuilding My Fedora 13 Kernel

When I would use Slackware I did Kernel rebuilds every six months. But the first time I tried to do one in Fedora 5 it did not go well. After spending 5 hours I decided to stick with the standard FC kernels. All of that changed about two weeks ago.

My laptop would keep crashing and the network modules would fail for some reason. It was doing this daily and I got so tire of it that I decided that I would have to do the following things:
  1. Remove unneeded modules and options from the kernel.
  2. If it still gave me problems first look in the logs for messages
  3. Run strace & ktrace on the applications that I was using during the panic.
  4. If its still giving me problems rebuild the kernel again but this time with logging.
To rebuild the kernel I mainly just followed the steps in Timme's Howtoforge article.

The Rebuild Process


First find out exactly what hardware I have by running the commands either one of these commands lspci, or lshw. I did not need to run lsusb to see the usb devices since either of the two latter commands will give you that. Then After I followed steps 2 - 2.5 of Howtoforge's fedora compilation guide. But during step 2.5 I would do the following;

As I was selecting options for each kernel subsystem the output of lswh -class & lswh -businfo the output of lshw guided me in choosing what to include or not in my kernel. This customization took sometime, it also involved me looking up what certain kernel features did to see if enabling them would be of benefit to me. It took sometime to verify specific hardware variants but after spending most of the night on that I was done with the kernel config.

After I followed steps 2.6 - 2.7 I was able to reboot the laptop with the custom kernel on the first try. The fact that my compile and build went so smoothly tells you that Falko Timme wrote a good article on the kernel build process and I am not going to duplicate his instructions here.

Recompile's Impact


After I did that the have been no kernel panics and power management is working again. Before the kernel recompile if the laptop got disconnected for more than 5 seconds it would shut down. Even though it was supposed to go into hibernate mode it would not instead processes would die an ugly groody death, the disk would need to be fscked and I would get irritated about the cable being jostled.

Now the battery's power levels are detected again so I can run it for half an hour on the battery. There are no kernel panics and the apps are running better. Unlike the times when I used to rebuild my kernel for Slackware I did not have to go through separate steps to make sure that the sound & wifi cards were working. I'm guessing that at least for the wifi card since its built in and not using the PCMCIA slot it makes it easier for Linux-2.6.34.7 kernel to handle it.

Possible Project


Since it took me so long to get done with make menuconfig I think I will try and automate that step by generating a list of a machine's hardware then using that list of hardware components and desired services to turn on options in the kernel .config file.

That might cut down on the time I have to review the hardware. Then to take it to the next level actually have the kernel be built and installed on VM to see if it boots the machine. And if the build fails I can review why. But since the system is a lot more stable right now I will not be doing anymore troubleshooting of crashes since there have not been any mission critical failures in the past two weeks.

Saturday, June 12, 2010

Saturday, June 5, 2010

Job Hunting In Nigeria

I noticed that many job announcements in Nigeria say that only candidates who are 30 or less will be trusted. For examples of this see the advertisements here and here. In the States, which I know about from working there, its possible to find a good DBA, Java programmer, or Sysadmin who is under 30 since many kids start dealing with these things from their teens; so they might already have 15 years experience.

But in 9ja with the slow networks, shallow internet & computer penetration most people who are even 30 have never dealt with backup tapes, some, built a RAID array or used tools like RT for trouble ticketing. Let alone have the experience dealing with things like SLAs, contracts, a major failure and the recovery from the failure, getting requirements, creating documentation, dealing with version control, backups will be harder. I first became aware of this because someone asked me about building an employment website for their firm and mentioned that they did not want anybody over thirty two applying.

When I asked the gentlement why their age matters and not weather they can carry out the tasks I was told that maybe an older person might have poor vision so cannot work as efficiently, might not like being supervised by someone who is younger.

I was very surprised to be hearing such things and mentioned that doing such things might not be ethical, or good business practices since all that should matter is does the person have the right skill set and are they willing to do the tasks.

Other things that I have seen is that people will only hire women as receptionists. When I discussed this with Jude he told me that women would br nicer to the customers, I pointed out that some women are not pleasant to be around but some men are; so why not make the requirements for the job a nice, friendly personality with good customer service skills instead of a young woman. He then told me that some of the men who come there will feel like they have a chance with her so they will come again. I still think that the approach to hiring is wrong and that with their age and gender discrimination these Nigerian employers are preventing a lot of good people from working for them. And after being exposed to the business and government ioperations I can see that these policies have not worked.

Friday, March 26, 2010

A Truth About Existence

I did not write the stuff below, it was a post on slactivist by Scaramouche that I thought really captures the silliness & tragedy of the human condition. Anyway I hope you enjoy it as much as I did.

One of my favorite blogs, the Waiter Rant, speaks eloquently to what you described here. He once had this to say:

When looking death in the face things get very real very quickly……..

I’m twenty one and doing a stint as a chaplain’s aide in a large gritty urban hospital.

Part of my job is to bring Communion to people dying in the AIDS ward. Most of the people wasting away in their beds are uninsured junkies or prostitutes. This is long before antiretroviral therapy. AIDS is poorly understood. Some people still wear masks out of fear of contagion.

Many of the people dying in this place are wracked with guilt. Remember how people used to say AIDS was God’s punishment for sinners? That’s not an abstract concept for many of these people. A lot of them made disastrous life choices - the consequences of which are now, remorselessly, killing them.

I’m too young and emotionally under equipped to be any real help to these people. I just try and listen. That’s hard. Some patients scream at me, driven insane by secondary infections that are rotting their brains. Others are stonily silent – not wanting help from anybody. Occasionally people find peace but that's rare. They cry, they bargain, they pray. All the things people do as they rage against the dying of the light.

Maria is a drug addict. She got AIDS from years of mainlining heroin. Her baby, the result of exchanging sex for drugs, died of AIDS. She has no family or friends. She lies dying alone in a small room overlooking the hospital’s air conditioning plant. She hasn’t had a bath in days. The sweet sour smell of the unwashed is over powering.

“Hi Maria. I brought you Communion,” I whisper.

She looks at me weakly.

“Can I have some water?” she asks. She’s near the end.

“Sure.”

I look for her water bottle. There is none.

“Where’s your water bottle?”

“The nurses won’t let me drink water,” she says.

Must be something going on with her kidneys. Stupid doctors. The woman's dying.

“Let me go ask the nurse what we can do,” I say.

“Thank you.”

I walk to the nurse’s station. A large woman sits behind the desk yakking on the phone with what seems to her girlfriend. She looks at me with complete disinterest.

I wait patiently for her to finish. She doesn’t.

I wait some more.

“Pardon me, Maria wants some water. Can I give her some?” I interrupt.

“Can’t you see I’m on the phone?” the nurse yells.

“Yes but….”

“I’ll be with you when I’m finished!”

So I wait. The nurse ends her call.

“Now, what do you want?” she says angrily.

“Can I give Maria some water?”

“She’s on restricted fluids you can’t.”

“How about some ice chips then? I think she has dry mouth.” I ask innocently.

The nurse throws her hands up in the air in frustration. “Yeah, go get the girl some ice chips for what good it'll do her. You can get them on the next unit.”

“Thank you,” I say.

I go over to the neighboring unit and fill a Styrofoam cup with ice. I walk back to Maria’s room.

“Maria I got you some ice chips.”

No response.

“Maria?”

I walk over to the bed. She’s dead.

A wave of incredible anger sweeps over me. All this poor girl wanted was a drink of water. It turned out to be her last request

Even this small thing was denied her.

I crush the cup in my hands. Ice scatters on the floor. Hot tears run down my face. This girl had nothing – less than nothing. She died thirsty and alone.

It was then my innocence was taken.

I march out to the nurse’s station. The nurse is on the phone again. When she sees me a look of annoyance crosses her face. “Now wha….”

I slam my hand down on the counter. “MARIA IS DEAD!”

The nurse jumps out of her chair.

“DON’T YOU GIVE A SHIT YOU LAZY BITCH? SHE’S DEAD!” I bellow.

All hell breaks loose. A code is called. Security is called.

The attending shows up. There’s a do not resuscitate order. He pronounces Maria dead.

Security guards escort me to the pastoral care office where the Chaplin waits for me.

Instead of yelling at me for losing my temper he sits me down on his couch. He hands me a cup of coffee.

“What happened?” he asks gently.

I tell him everything.

A small smile crosses his face. “That nurse is a lazy bitch,” he says.

I laugh harshly.

“This is hard work son,” he says.

“I had no idea how hard.”

We’re quiet. I listen to the wall clock tick.

“When you were looking at Maria in that bed were you thinking about yourself?” the priest says suddenly.

The tears come again.

“Yes.”

“What were you feeling?”

“That I never want to be alone like that.”

“Do you feel that alone?”

A truth I had been hiding from myself came bubbling up from the depths.

“Yes,” I start to sob.

The priest gets up and sits next to me. He gently and puts his arm around me. I cry till I feel like I’m going to shake apart.

When I finish the Chaplain says, “If you’re honest - trying to help people makes you confront the darkness in yourself.”

“Yeah,”

“Maybe you should work on feeling alone,” he adds.

“Kind of tough when you want to be a priest,” I reply.

“Maybe you should think about that.”

I’ve given my heart and soul to being a priest for four years. I’m supposed to go abroad to study theology next year. Now, for the first time, I realize it isn’t going to work out.

“God doesn’t want you to be unhappy,” the priest says.

“Then why drag me here and put me through all this for nothing?” I whisper.

“I don’t know.”

“God’s a real asshole sometimes isn’t he?” I say sadly.

The priest leans back and smiles. “A gigantic asshole.”

We both laugh.

A few months later I quit. ……

Tuesday, March 2, 2010

The Water Fall



In the summer I kept hearing the citizens of our lovely town talk about a waterfall, in a village far away. The journey to the waterfall was fairly arduous, Vince, one of our former finance people thought he was going to have a heart attack, so after he went there for the first time he started to work out a lot which made him a lot healthier and happier. Jordan, the Banner man, also said that it was a hard trek to the place.

Eventually, I decided to make time for a trip, the falls; from speaking to people I knew that we would need a four wheel drive vehicle, Mr Umar, the Transport Officer, said that I would assign me a driver who would take us there. I asked if I would have to speak to the driver but he said he would make those arrangements. To make it cheaper I invited about four people to come with me.



On the big day it turned when I called Umar about the truck and driver he told me to speak Mustapha. When I called Mustapha he told me it was his day off and he was going on a trip with his wife, and furthermore no one had told him about driving excursionists. When I heard this I complained to the TO about his broken promise which made him mad, since I did not want to get into a useless discussion of he said/he said I simply asked could me and Labaran pick up the truck? He agreed most readily to this so we picked up the truck and got the rest of our party. which consisted of;

  • Your narrator
  • Labaran the fixer
  • Young Victor, the aspiring poet
  • Charles "Indiana State of" Jones
  • Jamal "X Shabazz"
  • Melba the shrinker of heads.



After a long drive over dirt roads past villages, rice paddies, fields of 10 foot high millet, over streams we got to the village of the waterfall. The drive had reminded me of the time we drove my car through the Modoc National Forest so that we could get to the Rainbow Gathering. Just when I thought my lower back could not take it any more we arrived at Waterfall Village, this made me very happy since the truck was very crowded and uncomfortable in the back seat.


As usual whenever you go on excursions in Nigeria you will meet the villagers, spend some time with them, share kola, and give them a little something something. In return you will get a group of helpers who will carry your bag even if you don't want them to. going through all the protocols of Adamawa with the prominent elder we started the walk to our destination.



We walked past the flowering okra fields which Melba had never seen before and started to go up the highlands. The trip was okay for the first hour and then we came to the rough, steep part. Imagine if you will a path that is 1.5 metres from a sheer drop. At the end of this drop there is a rocky, rapid stream that has carved gullies in the valley. The path is overgrown with elephant grass, bushes, and other things, the path is also bisected by streams, in some sections its slippery because of the clays in the soil. and there can be a 40 degree incline in a few spots. While you are picturing all this imagine doing this on a humid day with temperature in the 40 centigrade range and you will have an idea of what the trip was like. Anyway, it was really hard for the 30 minutes it took to get over the hard part and my heart probably went up to 80 beats per minute during that half hour. But when I got done there was the waterfall in all its misty glory.

I took off my clothes stepped into the water and swam a little, let the water carry me down a couple of cataracts and had a great time. I even stepped under the waterfall and it was fucking cool. The force of the water wanted to push us away from the cataract, knock us down and carry us away. The only way me, Victor & Charles were able to stay under the fall was by holding on to each other..



After being there for an hour we all got dressed and went back. On the return I sat in the pickup's bed with Victor and it was a lot more comfortable though very un safe since there are no seatbelts there, though it was fun to watch the trees, roads and villages speeding away. It was also much cooler than the ride to the falls since the cool breeze made by the speeding vehicle was much more pleasant than the underpowered air-conditioner.

Sunday, February 14, 2010

You've Got To Get Behind the Mule Every Morning and Plough



When this semester started there were a few things that I wanted to get done so that I will feel a sense of accomplishment. Those things were;


  • Completing my rough draft of my Java textbook.
  • Finishing my rough draft of my Operating Systems book.
  • Writing an outline of our research project.
  • Getting money for our project
  • Training the swim team
  • Improve my running and swimming performance
  • Teaching my classes.
  • Finding a good backup solution for our environment and circumstances.
  • Getting automated installs working for our labs.
  • Getting up a LDAP server for our school.
  • Building a secondary Moodle server so that we can have failover.


All those things were very important, and I wanted to make some progress on every single one. Those that were work network related are very difficult since we have no budget, our equipment is failing and cobbled together. If I was not teaching instead of doing mainly teaching and some sysadmining I would have more time for that. Some of these tasks I am able to combine others have to be done in a certain order. I will be very happy when we get RT set up so that we can keep track of requests and IT projects that we are trying to finish we are also going to move a FC12 server to the data centre probably next week.

After thinking about it I found a backup solution that will work for our low tech network where I expect every device to fail and to not get replacements. It is related to the design I have come up with that will make our services more reliable. The main problem is the time to set it up now since we have been working on the issues that need to be fixed first such as automating deployments and figuring out what systems we have and what their states are. As to the swimming running & stretching that has been difficult but I have been running fairly regularly. I even did it in Washington.

On all the projects the has been some progress though it has been very slow, earlier I had even more stuff I wanted to get done but I thought it would be smart to scale back and wait till the summer to do stuff on data bases.

The one thing that I have tried to do is be pessimistic about what I can achieve so that I do not over schedule my self. The one thing that I have been doing is gettin behind the mule every morning and ploughing so that I make a little progress every day. As the song says I have been getting behind the mule everyday and ploughing.

Sunday, February 7, 2010

The Mysterious Stranger



When I lived in Anchorage I relied on the kindness of strangers to get hundreds of public domain audiobooks. One of the first public domain audiobooks was Mark Twain's Mysterious Stranger and Other Stories. As other people have said the title story is very existential, it looks at the flaws of humanity with a great deal of humour and clarity. In some ways its similar to Candide.

Anyhoo while paddling in the sea of interwebs I found a reference to angel called Satan which led me to a a clip in a TV show I had never heard of called The Adventures of Mark Twain. As you can see the we can enjoy the adventures of Satan. The readers for these istorirs are a credit to the whole Librivox community.