LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-12-2004, 11:18 AM   #1
~zoey~
Member
 
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
rakriege
Member
 
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
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
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
Code:
usermodmap=$HOME/.Xmodmap
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi
if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi
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
~/.xinitrc
~/.xsession
/etc/X11/xinit/xinitrc


possibly bottom of startkde would do it if you use that
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:11 AM.

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