Boot with numlock on? Possible?
Hi all
Is it possible to boot the Fedora Core 1 system and force the numlock to be on. When I boot into Win98 the numlock is on but if I boot into Fedora it stays off. I use the number pad instinctively and get into a flap when it doesnt work as I expect. If it is possible, how do I do it? Thanks Millyfish |
If you have a C compiler installed, download this ftp://ftp.silug.org/pub/ltsp/setnumlock.tar.gz
then Code:
tar xzf setnumlock.tar.gz Go to the Hat Menu > Preferences > More Preferences > Sessions > click the Startup Programs tab then > Add and for Startup Command enter setnumlock |
If you are using KDE in Fedora, go to KDE control center and you can make it happen there whithout installing any packages. You will find it under Hardware something(I use slovenian distro) and then Keyboard. There is an option whether to have NumLock on or of at boot and loading linux.
Peace! Hope it helps you(if you have KDE). |
hum. apperantly Core2 does not have the starup programs in the preferences menu. where else could that be?
sascha |
KDE control center? Don't you have it? Are you using GNOME?
|
sorry. I ment the startup folder in gnome. I saw that mentioned elsewhere too, it's supposed to be in the gnome-control-center, but it is not. at least not here on the Core2 box. any idea?
thanks, sascha |
Millyfish here!
Hope nobody thinks I'm ignoring my own thread - anyone spotting my other post in Newbies will know I've had a bigger fish to fry. Now that that is sorted though, I will give your suggestions a try when I get back home. Post results later. Phil |
Quote:
|
It is easy in KDE and KDE is so beautifull in this time of year with 3.2.2 coming with Fedora Core 2.
I have no idea for GNOMe. |
I fixed it, I run gnome-session-properties with a command from the terminal. How daft that the application is there but they've removed it from the menus...
|
Quote:
|
Yes, we all use KDE
|
Hello, I'm on a debian system, but I thought I'd share my solutions which should be easy enough to adapt to a fedora core distro provided you know where your startup scripts are.
Numlock when booting computer (this is `/etc/init.d/custom-numlock` on my system): Code:
#!/bin/sh For starting X from the console i.e. via startx, stick the following in `$HOME/.xinitrc` (note the path to the numlockx program may be different for your distro): Code:
#! /bin/sh If you run from gdm, on my debian system I stick the above in the file `/etc/gdm/Init/Default`. For kdm, I stick it in `/etc/kde3/kdm/Xsetup`. Again, these are on a debian system, so the locations of the configuration files for gdm and kdm are most likely different. If you don't care for a toggled numlock at a display manager but want it on when in a DE or WM, stick the above code in `$HOME/.xsession` The above are merely alternative suggestions to what's already posted, but I like these solutions as they are more or less independent of the DE or WM you may want to run. |
Having run into this same problem, but being too lame to think of invoking the wizard from the command line (actually, see end of message for rationalized reason), I tried figuring out just what the wizard does and then doing that by hand.
So, in case anyone wonders, the Sessions wizard (is that the right term?) is a graphical way of editing the file ~/.gnome2/session-manual In my system I like to run both setnumlock and ssh-add whenever I start up GNOME. Here, between the ***...*** lines, is the content of my ~/.gnome2/session-manual ******************************************************************************* [Default] num_clients=2 0,RestartStyleHint=3 0,Priority=50 0,RestartCommand=/usr/bin/setnumlock 1,RestartStyleHint=3 1,Priority=70 1,RestartCommand=/usr/bin/ssh-add ******************************************************************************* You will notice that the file starts with a blank line. (This is probably not important, but who knows?) The num_clients value should be the number of things you want to start up. The priority numbers may be confusing and tricky. A higher number means a lower priority. If you're running ssh-add, you should assign it a high number, so it runs last. The RH9 documentation suggested that 70 would be a good value. I hope the rest is clear enough. I have no idea what the RestartStyleHint is about, but this works for me. Hope someone finds this useful. I'm about to start developing a perl script for customizing a fresh installation, so I wanted to know how to do this sort of thing without a GUI. Kim |
Oh, and for what it's worth, I pretty strongly disagree with wiraone's assessment that no one cares that this was accidentally left out of the menus. I found it quite frustrating, and I can hardly be the only one.
Kim |
All times are GMT -5. The time now is 01:55 PM. |