From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Alexandre Russel" Newsgroups: gmane.emacs.help Subject: Re: where to put my .xmodmap? Date: 22 Aug 2004 02:47:26 +0900 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1093110662 31179 80.91.224.253 (21 Aug 2004 17:51:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Aug 2004 17:51:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 21 19:50:54 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bya0z-0006Pj-00 for ; Sat, 21 Aug 2004 19:50:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bya5J-0005Tt-3I for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Aug 2004 13:55:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.e.nsc.no!uio.no!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 61 Original-NNTP-Posting-Host: pl724.nas926.o-tokyo.nttpc.ne.jp Original-X-Trace: quimby.gnus.org 1093110448 991 210.165.239.212 (21 Aug 2004 17:47:28 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Sat, 21 Aug 2004 17:47:28 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:124860 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20209 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20209 bkhl@elektrubadur.se (Björn Lindström) writes: > "Alexandre Russel" writes: > > > When I was looking into modmap I have seen this advice so tried it. > > First had no .xsession in my home directory so created one and added: > > > > xmodmap ~/.xmodmap > > > > to it, but it didn't do anything.(considering there was no .xsession > > file in the first place I don't think this file is read anyway). I had > > a look in all of my . file and couldn't find one that would be read by > > X. > > It may be that Fedora calls this file by some other name, but probably > you just have to make it executable. really BAD. If any one reading that thread is using his system only as root user, do not make your .xsession file executable if it contains only the: xmodmap ~/.xmodmap line, the result is not friendly. I am using Fedora core 1 with gnome. I have my .xmodmap set up: remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock keycode 115 = Control_L add Control = Control_L keycode 116 = Control_R add Control = Control_R and following the preceding advice wrote the line: xmodmap .xmodmap in my .xsession file and made it executable. I logged out and try to log in again. I couldn't with the message: Your session only lasted 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you maybe out of disk place. Try login with one of the failsafe sessions to see if you can fix this problem. Then I was asked if I wanted to view the details in /.xsession-errors file with the result: /etc/X11/gdm/PreSession/Default: Registering your session with wtmp and utm /etc/X11/gdm/PreSession/Default: running: /usr/bin/X11/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/gdm/: 0.Xservers" -h "" -l":o""xyz" with xyz standing for my login name(note that the previous line are note cut and paste but wrote down and retyped so there maybe some inconsistence). I could get out of the situation login in as root user, su with my normal login name, renaming the .xsession in my home directory and login again under my login name. I am not sure I could have done the same thing if I had only a root user on my system. So X definitely read the .xsession file but mine was not written properly... Any help welcome, Cheers, Alex.