Unable to uninstall Audio Driver – Realtek, Sound not working

A system at the office was having the Realtek audio control panel icon showing up in the system tray, with the 3d test working, but windows wasn’t showing the audio device in the sound and audio control panel applet. Instead windows said that not audio playback device was found. As a result no applications were able to play audio.

This post at tomshardware.com provided an easy solution.

Just open regedit and delete the key folder //HKEY_LOCAL_MACHINE/SYSTEM/CONTROLSET001/ENUM/HDAUDIO and restart your computer. It should prompt you to install the hardware again.

That fixed the hardware issue and the user was able to view www.abcnews.go.com/whatwouldyoudo happily. :)

Enabling mod_rewrite on fedora system with drupal

After deploying drupal on a test machine, and configuring the site, the deployment got stuck when I wanted to enable clean urls, but the check kept failing saying the the machine was not configured properly for clean urls. Most documentation on the internet and on the drupal documentation itself seems to be for debian based distros.

However the problem seemed to be that my drupal was installed on a subdirectory as a virtual host and a simple rewritebase /drupal solved the problem.

If you have the same problem, you could start solving from here. Continue reading

Fixing a broken .htaccess for drupal

The Drupal site at tekipad.com broke its clean url functionality and every attempt to access similar to tekipad.com/node/33 began redirecting to tekipad/blog ‘s 404 error page. tekipad.com/?q=admin links worked fine though.
On accessing the root directory of the site via ftp and downloading .htaccess, the error seemed obvious. The following lines needed to be added.
As an introduction, the site is organized as follows:
/ is the root directory of tekipad.com which runs drupal
while the wordpress blog is installed at /blog

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/(.*)$
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]

You may need to be careful of the following parts in the last two lines:
1) ^/(.*)$
if your site is to be accessed as a subdirectory of your site, the part has to be modified to ^/subdir/(.*)$
2) /index.php?q=$1
this has to be /subdir/in1dex.php?q=$1

Was a basic mistake but took a couple of hours to find and fix it. I was assuming the problem was in the drupal database.

Man Pages:

Solving the /elgg/acton/systemsettings/install not found error in elgg

While installing elgg on the fedora server, I faced this problem when I accessed http://address/elgg

The first installation form came up and on submitting I was presented with the error:

Not Found. The requested URL /elgg/action/systemsettings/install was not found on this server

However it is a well documented error and is easy to solve. Edit /etc/httpd/conf/httpd.conf and Edit the line saying 

AllowOverride none 


AllowOverride all

in the global section, not in the directory section. You could probably do it directory wise too but I didn’t bother.

The edit the .htaccess file in /elgg to point to the correct directory as

RewriteBase /elgg/

(I just needed to uncomment that line). Now reload Apache Configuration

/etc/init.d/httpd reload

Works fine now.

Solving Fedora Core 10 troubles, Network Interface with Static IP not brought up automatically

I installed fedora on another old system that was lying around.

Unfortunately the asus board that it came with an intel graphics bug due to which the gui based anaconda installer wasn’t diplaying correctly. To install in text mode, when the primary screen comes up and asks you to choose a boot option
select “Install or upgrade an existing system” and then press the tab key
You will see the following line

vmlinuz initrd=initrd.img

Add text to the line and make it

vmlinuz initrd=initrd.img text

Hit enter and Fedora install should start in text mode.

During the install, most of the setup went smoothly aside from the following hassles
1. A normal user account was not created
2. Fedora will not start up in Graphical mode.
3. The Static IP I set for my system works, but the ethernet interface is not brought up after boot. So after each boot I have to manually go to the system and do a
ifup eth0
Now that is not acceptable since I plan to put this in the basement anyway to run as a sync server. I can’t be running down each time. So lets solve #3 for now.

So here we go.
Firstly, turn off Network Manager and turn on network

chkconfig NetworkManager off
chkconfig network on

then edit the file /etc/ sysconfig/network-scripts/ifcfg-eth0 as required. On mine it looks like this

# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+

DNS1 and DNS2 can be whatever your DNS addresses are. HWADDR should be whatever your MAC address is and is probably already entered. NETMASK, IPADDR and GATEWAY are self explanatory. ONBOOT and NM_CONTROLLED need to be set as above for the interface to be brought up properly.

A shutdown -r now works ok and I am able to ssh back within seconds again after it reboots.
Next post on creating the new user account

Solving Error with bzr in debian etch. PathNotChild Stack Trace

I installed bazaar on my debian box in order to host the ‘Leave Status Board’ Project on launch pad. Following the instructions to init, add, commit worked fine. But on trying to push to the launchpad account, (had to add the RSA public key to Launchpad first) I got a whole bunch of python errors, a stack trace.

bzr: ERROR: bzrlib.errors.PathNotChild: Path ‘bzr+ssh://info-jsemmanuel@bazaar.launchpad.net/~info-jsemmanuel/leavestat/trunk/’ is not a child of path ‘bzr+ssh://info-jsemmanuel@bazaar.launchpad.net/%7Einfo-jsemmanuel/leavestat/’

Traceback (most recent call last):
File “/usr/lib/python2.4/site-packages/bzrlib/commands.py”, line 611, in run_bzr_catch_errors
return run_bzr(argv)
File “/usr/lib/python2.4/site-packages/bzrlib/commands.py”, line 573, in run_bzr
ret = run(*run_argv)
File “/usr/lib/python2.4/site-packages/bzrlib/commands.py”, line 282, in run_argv_aliases
return self.run(**all_cmd_args)
File “/usr/lib/python2.4/site-packages/bzrlib/builtins.py”, line 601, in run
relurl = to_transport.relpath(location_url)
File “/usr/lib/python2.4/site-packages/bzrlib/transport/__init__.py”, line 375, in relpath
raise errors.PathNotChild(abspath, self.base)
PathNotChild: Path ‘bzr+ssh://info-jsemmanuel@bazaar.launchpad.net/~info-jsemmanuel/leavestat/trunk/’ is not a child of path ‘bzr+ssh://info-jsemmanuel@bazaar.launchpad.net/%7Einfo-jsemmanuel/leavestat/’

bzr 0.11.0 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'push', 'bzr+ssh://info-jsemmanuel@bazaar.launchpad.net/~info-jsemmanuel/leavestat/trunk']

** please send this report to bazaar-ng@lists.ubuntu.com

A helpful soul at irc (#bzr@irc.freenode.net) mentioned that 0.11-1.1 version of bazaar that I had installed was quite old. Considering that 1.11 is the current version, that was actually quite old.

A quick trip to backports.org for the stable version for i386 with a download with wget got me the deb installer.

Uninstall the old version, install the deb file. A minor hiccup was the python-celementtree needed to be installed, which I did. The installer also complained about python 2.5 required, while my system had 2.4. But didn’t stop installing.

Pushing to launchpad works fine for now, so I take it that python 2.4 is quite ok for this version of bzr.

CorelDraw Error: Required Resource was Unavailable

When CorelDraw X3 gives the error dialog “Required Resource was unavailable” on clicking the New or Open links on the Welcome Page, it probably is because the User’s preferences is corrupt.
To confirm, create a new account, login to that and try opening Coreldraw. If you are able to create a new file, then you need to flush out the Applications, User preferences.
To do so, close Corel first, open C:/Documents and Settings/Application Data and delete the Corel Folder.
When you restart Corel, the preferences will be regenerated and it should open fine.

Update: Coreldraw seemed to show only a few fonts when using the text tool. Disabling “Use only document fonts”  in Tools>options>font options fixed that.

Solution: Spell Check in Word 2007 not working

A friend dropped over her laptop saying the spell check in her Word 2007 wasn’t working. Apparently lot of users seem to have this problem.

There are many reasons but in this case, the solution was quite simple as outlined at this forum post.

Apparently the spellcheck add-in was disabled. Word Option>Addins>Disabled Addins and Go… shows the disabled addin which can be easily enabled.

Spell check works now and she owes me one. I am gonna ask for a pizza in return for the troubleshooting session. :p