LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-30-2009, 12:12 PM   #1
dellthinker
Member
 
Registered: Jan 2007
Distribution: Debian etch 4.0/Debian lenny 5.0
Posts: 209

Rep: Reputation: 30
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!
 
Old 09-30-2009, 01:25 PM   #2
Prehistorik
LQ Newbie
 
Registered: Oct 2006
Location: St. Petersburg, Russia
Distribution: Fedora
Posts: 17

Rep: Reputation: 1
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?
 
Old 09-30-2009, 01:56 PM   #3
dellthinker
Member
 
Registered: Jan 2007
Distribution: Debian etch 4.0/Debian lenny 5.0
Posts: 209

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Prehistorik View Post
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.
 
Old 10-01-2009, 12:17 PM   #4
dellthinker
Member
 
Registered: Jan 2007
Distribution: Debian etch 4.0/Debian lenny 5.0
Posts: 209

Original Poster
Rep: Reputation: 30
[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!
 
  


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
Cannot connect to TightVNC Server vishalvkapoor Linux - Networking 8 11-28-2011 02:33 PM
help me get tightvnc server to work jbeedham Linux - Software 2 07-10-2005 04:33 PM
tightvnc server on bootup greenmeanie Debian 2 05-10-2005 11:22 AM
Tightvnc server connection problem DWNelson Linux - Networking 1 10-04-2004 12:32 PM
start tightVNC server on mandrake 10.0 pelgrimforever Linux - Newbie 2 09-15-2004 05:43 AM


All times are GMT -5. The time now is 06:51 AM.

Main Menu
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