Re: Number lock on?

From: Jeff Kinz (jkinz_at_kinz.org)
Date: 05/16/05

  • Next message: Jeff Vian: "Re: ramifications of using a stock kernel?"
    Date: Mon, 16 May 2005 10:32:05 -0400
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    On Mon, May 16, 2005 at 08:17:40AM -0500, Anthony Dean wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    > Hello,
    >
    > Is there a way of making sure the number lock turns on automatically in
    > Gnome when starting my PC?

     One way:

    If the Num Lock key being on at startup is important to you, two options
    are to follow the below instructions OR switch desktops.

    ============ Below this line is the fix for Gnome desktop ===========

    NOTE 1: To successfully do this you need the C compiler (series d,
    package gcc) and the include files of the X libraries(package xdevel,
    series x).

    If you don't have the gcc (Gnu Compiler Collection) which includes the C
    compiler, you should install it. You can fix LOTS of problems with these
    very valuable tools (without a lot of programming knowledge).

    If you DO NOT have the C compiler, and you DO NOT WANT the gcc package
    on your machine, I am told you can use the "setleds +num &> /dev/null"
    command in one of the X start-up scripts. I don't know if this method
    works or not, but it probably will take more tinkering on your part
    (unless you really know your scripting).

    NOTE: For those of you *who boot to run level 3*, you can add "setleds
    +num &> /dev/null" (which null routes any error output) to the end of
    .bashrc but you must specify the "&> /dev/null", NOT just "setleds
    +num". Otherwise, you will get an error message every time you start a
    terminal from your desktop. Note that "setleds +num" doesn't work from
    a virtual console (terminal) anyway; it's NOT quite the same as the
    console.

    >>-->This will turn Num Locks on when you log in to the console, but NOT
    when you run startx.

    END NOTE 1

    >>-->best to perform this procedure as root.

    When you have gcc as explained above:

    1. Download this very small program: setnumlock.tar.gz
    a) here is the link --> ftp://ftp.silug.org/pub/ltsp/setnumlock.tar.gz
    NOTE: I tested on Redhat 8/9 (probably works on other distributions too)

    b) I suggest you create a directory named num-on to download the file
    to. type command: mkdir num-on

    c) When you have finished the download:
    cd (change directory) to num-on (or wherever you downloaded the file)
    gzip -d setnumlock.tar.gz
    tar xvf setnumlock.tar
    cd setnumlock
    type "make"
    then type "make install"

    Make install has now created /usr/bin/setnumlock
    (a very small program that turns numlock on)

    2. Now you need to run this program whenever you log in:
    Click the start button and go to:
    --> Preferences --> More Preferences --> Session
    Click the Start Up Programs tab.
    Click the Add button.
    Browse to /usr/bin/setnumlock (or type in /usr/bin/setnumlock)
    Click OK.
    Logout and Log back in (to restart the X server)

    From: http://www.linuxgazette.com/node/395/trackback

    -- 
    Jeff Kinz, Emergent Research, Hudson, MA.
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Jeff Vian: "Re: ramifications of using a stock kernel?"