* shell error
@ 2005-09-29 15:02 fabrizio
2005-09-29 23:57 ` Bob Harris
0 siblings, 1 reply; 3+ messages in thread
From: fabrizio @ 2005-09-29 15:02 UTC (permalink / raw)
Dear users,
I need to configure the keyboard map as italian key map
so I put in:
/etc/profile the string
xmodmap /usr/lib/X11/keymaps/<italian_keyboard_map>
When I log in as root all is ok
but when I change user with:
su - <user>
it show me the following error:
-sh: xmodmap not found
even if xmodmap is in the <user> PATH.
Someone knows why?
thanks,
Fabrzio
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: shell error
2005-09-29 15:02 shell error fabrizio
@ 2005-09-29 23:57 ` Bob Harris
2005-09-30 6:49 ` fabrizio
0 siblings, 1 reply; 3+ messages in thread
From: Bob Harris @ 2005-09-29 23:57 UTC (permalink / raw)
In article <433c0237$0$6347$4fafbaef@reader2.news.tin.it>,
"fabrizio" <fabrizio.imperio@alice.it> wrote:
> Dear users,
> I need to configure the keyboard map as italian key map
> so I put in:
>
> /etc/profile the string
> xmodmap /usr/lib/X11/keymaps/<italian_keyboard_map>
>
> When I log in as root all is ok
> but when I change user with:
>
> su - <user>
>
> it show me the following error:
>
> -sh: xmodmap not found
>
> even if xmodmap is in the <user> PATH.
>
> Someone knows why?
>
> thanks,
> Fabrzio
But it is not in the users path until after the user's .profile
runs runs which should be after /etc/profile runs.
Just modify the xmodmap command to include the full path to the
command and then you are not dependent on path info
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: shell error
2005-09-29 23:57 ` Bob Harris
@ 2005-09-30 6:49 ` fabrizio
0 siblings, 0 replies; 3+ messages in thread
From: fabrizio @ 2005-09-30 6:49 UTC (permalink / raw)
Bob Harris ha scritto:
> But it is not in the users path until after the user's .profile
> runs runs which should be after /etc/profile runs.
>
> Just modify the xmodmap command to include the full path to the
> command and then you are not dependent on path info
Thanks Bob,
That was the solution :)
moreover I had to set in the /etc/profile
the DISPLAY VARIABLE to avoid the messages:
/usr/bin/X11/xmodmap: unable to open the display ''
/usr/bin/X11/xhost: unable to open the display ""
thank you again
Fabrizio
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-30 6:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-29 15:02 shell error fabrizio
2005-09-29 23:57 ` Bob Harris
2005-09-30 6:49 ` fabrizio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox