LinuxQuestions.org
Visit Jeremy's Blog.
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, 12:18 PM   #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-13-2004, 12:06 AM   #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-13-2004, 12:44 AM   #3
foo_bar_foo
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
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


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 04:02 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 10:40 PM
startup/login script in debian lixy Linux - Newbie 1 03-25-2005 11:49 AM
/etc/ Login.defs will not save my settings??? wardialer Linux - Security 2 03-09-2005 09:37 AM
How do I make SSH use the MAIL variable set by /etc/login.defs? RyanA Linux - Software 1 08-15-2003 12:03 PM


All times are GMT -5. The time now is 04:19 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration