: The Scratchpad :

Windows Tips

How to disable system speaker?
If you have played DOS games, you must have surely got annoyed by the beep sound coming out of your system speaker. You try to use mute the sound, but it refuses to go away.

Here is the trick to disable the system speaker. Enjoy.

1. Start > Settings > Control Panel > System > Hardware > Device Manager.

2. Click View >Show hidden Devices.

3.Under "Non Plug and Play Devices", press right mouse button on "Beep"

4. Select Disable.

5. Reboot.
 Continue reading 

November 28, 2008 Posted by | Uncategorized, Windows XP tips | Leave a comment

Creating static and dynamic libraries in Linux

Static Libraries (*.a):

  • Compile: cc -Wall -c foo.c bar.c
    • -Wall: include warnings
  • Create library “foobar.a”: ar -cvq foobar.a foo.o bar.o
  • Linking with the library: cc -o executable-name prog.c libctest.a

Dynamic Libraries (*.so):

  • gcc -Wall -fPIC  foo.c bar.c
  • gcc -shared -Wl,-soname libfoobar.so.1 -o libfoobar.so.1.0  *.o
  • mv libctest.so.1.0 /opt/lib
  • ln -sf /opt/lib/libctest.so.1.0 /opt/lib/libctest.so
  • ln -sf /opt/lib/libctest.so.1.0 /opt/lib/libctest.so.1

November 28, 2008 Posted by | Linux Tips | , , | Leave a comment

VNC Viewer – Linux alternative to Remote Desktop

Use tigervnc…………. otherwise you will get into lot of issues with xterm and missing fonts…..

such as

“could not open default font ‘fixed'”

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.

This works:

yum install tigervnc-server

yum install tigervnc

VNC stands for Virtual Network Computing. More info here

Continue reading

November 27, 2008 Posted by | Linux Tips | , | Leave a comment