Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-12-2004, 11:18 AM   #1
Registered: Aug 2004
Location: South Dakota
Distribution: ubuntu & PCLOS
Posts: 119

Rep: Reputation: 15
Startup script=/etc/login.defs?

I am running ubuntu with gnome and nautilus.

I used xkeycaps to disable the caps lock on my keyboard.

The xkeycaps manual states that to save the setting I need to add
xmodmap ~/.xmodmap- `uname -n` to the appropriate startup script in the appropriate init file.

I found/etc/login.defs but I don't know whether or not that is the right file and I don't want to mess anything up.

I think that if it is the right file I can add the line using gedit.

I would really appreciate some help with this.

Thanks, zoey
Old 11-12-2004, 11:06 PM   #2
Registered: Oct 2003
Location: San Deigo, CA
Distribution: FC3, Win2k Server, XP Pro & 2003 Server
Posts: 198

Rep: Reputation: 30
to apply to all users? Try export
Old 11-12-2004, 11:44 PM   #3
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
no login.defs is not the right file , that's just definitions for the login program
since this is an x file i think use something appended to x startup

so i think it depends on how you startx
and different distribution have differebt sets of scripts
my version of xinitrc automaticaly looks for a default Xmodmap with this code
if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
if [ -f $usermodmap ]; then
    xmodmap $usermodmap
so first is to just rename it ~/.Xmodmap instaead ~/.xmodmap
and that might be all you need
might want to read your xinitrc
other candidates for running your command are

possibly bottom of startkde would do it if you use that


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
umask & /etc/login.defs gepesz Linux - Software 2 09-04-2011 03:02 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
startup/login script in debian lixy Linux - Newbie 1 03-25-2005 10:49 AM
/etc/ Login.defs will not save my settings??? wardialer Linux - Security 2 03-09-2005 08:37 AM
How do I make SSH use the MAIL variable set by /etc/login.defs? RyanA Linux - Software 1 08-15-2003 11:03 AM

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration