Nux!


Home » Stella » Howtos, tips & tricks » numlock (start up on boot)
numlock [message #2015] Sun, 03 August 2014 15:32 Go to next message
detipco is currently offline  detipco
Messages: 294
Registered: March 2014
Senior Member
Maybe its helpfully, found this by searching in the web.


Turn Num Lock key on
This can be done through 2 steps.

Install "numlockx"
Edit the /etc/gdm/Init/Default file

Install numlockx through terminal using this command
sudo yum install numlockx

Edit the /etc/gdm/Init/Default file through Gedit using this command in a terminal
sudo gedit /etc/gdm/Init/Default

In the file which opens, above exit 0, paste the lines below

if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi

Save the file and exit.

Next time you reboot, num lock will be on by default
Re: numlock [message #2017 is a reply to message #2015] Sun, 03 August 2014 22:09 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1650
Registered: January 2012
Senior Member
Administrator

Couldn't you just have added "numlockx on" to your Gnome start-up programs?
Re: numlock [message #2019 is a reply to message #2017] Mon, 04 August 2014 07:43 Go to previous messageGo to next message
detipco is currently offline  detipco
Messages: 294
Registered: March 2014
Senior Member
Sure, also possible.
Re: numlock [message #2224 is a reply to message #2017] Sun, 17 August 2014 10:37 Go to previous messageGo to next message
pretender is currently offline  pretender
Messages: 11
Registered: July 2014
Location: Brasov
Junior Member
nux wrote on Mon, 04 August 2014 00:09
Couldn't you just have added "numlockx on" to your Gnome start-up programs?

Please tell me wich one it's command? I added it on start-up but i miss the comand for it.
Thanks
Re: numlock [message #2229 is a reply to message #2015] Sun, 17 August 2014 11:37 Go to previous messageGo to next message
nux is currently offline  nux
Messages: 1650
Registered: January 2012
Senior Member
Administrator

numlockx on


That's the command.
Re: numlock [message #2232 is a reply to message #2015] Sun, 17 August 2014 14:50 Go to previous messageGo to next message
pretender is currently offline  pretender
Messages: 11
Registered: July 2014
Location: Brasov
Junior Member
Thank a lot,@nux Smile
Re: numlock [message #2319 is a reply to message #2015] Mon, 01 September 2014 08:13 Go to previous messageGo to next message
jodie is currently offline  jodie
Messages: 9
Registered: May 2014
Junior Member
I tried to install numlockx. I get error messages. This is what my terminal looks like:

[root@localhost ~]# yum install numlockx
Loaded plugins: fastestmirror, refresh-packagekit, security
Error: File contains parsing errors: file://///etc/yum.repos.d/linuxtech.repo
[line 2]: name=LinuxTECH

[line 3]: baseurl=http://pkgrepo.linuxtech.net/el6/release/

[line 4]: enabled=1

[line 5]: gpgcheck=1

[line 6]: gpgkey= http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTE CH.NET

So I don;t know what to do next. Please help.
Re: numlock [message #2320 is a reply to message #2015] Mon, 01 September 2014 13:02 Go to previous message
nux is currently offline  nux
Messages: 1650
Registered: January 2012
Senior Member
Administrator

Seems like that file is not formatted properly. You could just remove it or move it elsewhere as backup, e.g. (as root)
mv /etc/yum.repos.d/linuxtech.repo /etc/yum.repos.d/linuxtech.repo.bak

[Updated on: Mon, 01 September 2014 13:02]

Report message to a moderator

Previous Topic: NVidia driver howto
Next Topic: Tweaking CentOS 7.
Goto Forum:
  


Current Time: Thu Mar 21 03:13:23 GMT 2019

Total time taken to generate the page: 0.03002 seconds