| Fedora This forum is for the discussion of the Fedora Project. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. |
 |
05-11-2004, 09:21 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2004
Location: UK - East Midlands
Distribution: RH9 - Shrike
Posts: 8
|
Boot with numlock on? Possible?
[ Log in to get rid of this advertisement]
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
|
|
|
|
05-11-2004, 11:22 AM
|
#2
|
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 1,930
|
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
cd setnumlock
make
su
password
make install
chmod 755 /usr/bin/setnumlock
Then you need to set Gnome to run setnumlock when you log in. The menus are arranged differently in Fedora and I can't remember where this is but in regular Gnome 2.6 it's Desktop Preferences > Advanced > Sessions > Startup Programs > Add and then fill in setnumlock in the Startup Command box. I'll reboot into Fedora and edit this.
Go to the Hat Menu > Preferences > More Preferences > Sessions > click the Startup Programs tab then > Add and for Startup Command enter setnumlock
Last edited by Andrew Benton; 05-11-2004 at 11:29 AM..
|
|
|
|
05-11-2004, 04:17 PM
|
#3
|
|
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040
|
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).
|
|
|
|
05-11-2004, 07:51 PM
|
#4
|
|
LQ Newbie
Registered: Oct 2003
Posts: 18
|
hum. apperantly Core2 does not have the starup programs in the preferences menu. where else could that be?
sascha
|
|
|
|
05-11-2004, 07:53 PM
|
#5
|
|
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040
|
KDE control center? Don't you have it? Are you using GNOME?
|
|
|
|
05-11-2004, 08:18 PM
|
#6
|
|
LQ Newbie
Registered: Oct 2003
Posts: 18
|
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
|
|
|
|
05-13-2004, 03:12 AM
|
#7
|
|
LQ Newbie
Registered: Apr 2004
Location: UK - East Midlands
Distribution: RH9 - Shrike
Posts: 8
|
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
|
|
|
|
05-25-2004, 03:28 PM
|
#8
|
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 1,930
|
Quote:
Originally posted by Espique
hum. apperantly Core2 does not have the starup programs in the preferences menu. where else could that be?
sascha
|
Where indeed. I've just installed Fedora core 2 and I can't get setnumlock working as there's no Sessions option on the Hat Menu > Preferences > More Preferences > Sessions menu. Does anyone know how to run a command when you log in to gnome on Fedora Core 2?
|
|
|
|
05-25-2004, 03:31 PM
|
#9
|
|
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040
|
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.
|
|
|
|
05-25-2004, 04:31 PM
|
#10
|
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 1,930
|
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...
|
|
|
|
05-26-2004, 09:43 AM
|
#11
|
|
Member
Registered: Nov 2003
Location: Diawang-awangan
Distribution: Ubuntu Hoary!
Posts: 319
|
Quote:
Originally posted by Andrew Benton
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...
|
It wasn't removed intentionally .. but I guess there is a bug somewhere in the .desktop file which makes it not showing up. This is one of the few cosmetic problems with FC2 ... and it seems that nobody really care about it ..
|
|
|
|
05-26-2004, 10:22 AM
|
#12
|
|
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040
|
Yes, we all use KDE
|
|
|
|
05-26-2004, 10:41 AM
|
#13
|
|
LQ Newbie
Registered: Feb 2003
Posts: 29
|
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
SETLEDS=/usr/bin/setleds
case "$1" in
start)
echo -n "Enabling numlock on consoles: "
if [ -e /dev/.devfsd ]; then
for tty in /dev/vc/[1-9]; do
$SETLEDS -D +num < $tty
done
else
for tty in /dev/tty[1-9]; do
$SETLEDS -D +num < $tty
done
fi
echo "numlock."
;;
stop)
echo -n "Turning numlock off on consoles: "
if [ -e /dev/.devfsd ]; then
for tty in /dev/vc/[1-9]; do
$SETLEDS -D -num < $tty
done
else
for tty in /dev/tty[1-9]; do
$SETLEDS -D -num < $tty
done
fi
echo "numlock."
;;
restart|reload|force-reload)
/etc/init.d/custom-numlock stop
/etc/init.d/custom-numlock start
;;
*)
echo "Usage: /etc/init.d/custom-numlock {start|stop|restart|reload|force-reload}"
exit 1
;;
esac
exit 0
For the following, you need a program called numlockx .
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
/usr/X11R6/bin/numlockx on
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.
Last edited by smokybobo; 05-26-2004 at 10:45 AM..
|
|
|
|
06-10-2004, 09:01 AM
|
#14
|
|
LQ Newbie
Registered: Jun 2004
Location: Menlo Park, CA
Distribution: Fedora Core 3
Posts: 9
|
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
|
|
|
|
06-10-2004, 09:05 AM
|
#15
|
|
LQ Newbie
Registered: Jun 2004
Location: Menlo Park, CA
Distribution: Fedora Core 3
Posts: 9
|
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
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:51 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
LQ Podcast
LQ Radio
|
|