LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   TightVNC Server (https://www.linuxquestions.org/questions/linux-server-73/tightvnc-server-758726/)

dellthinker 09-30-2009 12:12 PM

TightVNC Server
 
Hi all. I installed TightVNC server on the domain controller. And im able to login with no problems. However, the keyboard im using ( a laptop ) doesnt seem to be able to work for the server.

For example, when i type in my password, it receives that correctly. But once logged in when i open a window or gedit the keys that i type in are not correct. How can i solve this? Im using Linux on my laptop as well so i dont see why there would be any issues. Thanx in advance!

Prehistorik 09-30-2009 01:25 PM

The problem you've told about may be locale related.
Can you please answer some questions?
1) Have you tried to change the keyboard layout in VNC session?
2) Do the functional keys work?
3) Do the server and the client have similar locales?
try
set | grep '^LANG'
and
set | grep '^LC_'
4) What client do you use?

dellthinker 09-30-2009 01:56 PM

Quote:

Originally Posted by Prehistorik (Post 3702153)
The problem you've told about may be locale related.
Can you please answer some questions?
1) Have you tried to change the keyboard layout in VNC session?
2) Do the functional keys work?
3) Do the server and the client have similar locales?
try
set | grep '^LANG'
and
set | grep '^LC_'
4) What client do you use?


1) No i have not. The instructions i found here didnt suggest anything about keyboard layout. So if that could solve my problem how would i go about doing it? Also, seeing how i launch the vncviewer from cmd line, what option would i need to add for keyboard layout? I didnt see it in the man pages.

2) Yes they do, prior to me installing TightVNC i would administrate the server via OpenSSH. Also if i use a physical keyboard/mouse all is well.

3) Yes.

Code:

Server:~# set | grep '^LANG'
LANG=en_US.UTF-8

And for my laptop.

Code:

user@laptop:~$ set | grep '^LANG'
set | grep '^LANG'
LANG=en_US.UTF-8

4) The client that i read in the instructions was vncviewer. I've used this previously for a Windows Server with no problems.

dellthinker 10-01-2009 12:17 PM

[solved]
 
To the World of Linux:

The problem seemed to be with the vncserver. After googling around for a day and a half i found a solution and got it working. Now all the keys i type are correct.

When launching the vncserver as a user you must edit the
/home/user/.vnc/xstartup file.

The default looks like so....

Code:

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
/etc/X11/Xsession

Simply make the following changes and restart the server under that client like this ....


Code:

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession

Cheers! :)


All times are GMT -5. The time now is 06:30 PM.