|
Home > Archive > Unix True 64 > September 2005 > shell error
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| fabrizio 2005-09-29, 6:00 pm |
| 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
| |
| Bob Harris 2005-09-29, 8:49 pm |
| 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
| |
| fabrizio 2005-09-30, 2:50 am |
|
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
|
|
|
|
|