Quote:
Originally Posted by raskin
So does leafpad start after all this (if you repeat attempt after xhost on desktop)? If not, try 'strace' way again, wait a minute, terminate it and post leafpad.strace.
|
Sorry I'm not clear of your advice. I don't have leafpad running on the desktop.
Performed following steps:-
On server;
$ echo $LC_ALL ; echo $LANG
This time not "en_US.UTF-8". I did not touch anything on locale config.
$ export LC_ALL=C ; export LANG=C
No complaint.
$ strace -f -o leafpad.strace leafpad
started leafpad locally.
On desktop;
$ xhost + 127.0.0.1
Code:
127.0.0.1 being added to access control list
$ echo $LC_ALL ; echo $LANG
$ export LC_ALL=C ; export LANG=C
No complaint.
$ ssh -Y satimis@102.168.0.10 leafpad
Code:
satimis@192.168.0.10's password
It hung there sometimes.
Then popup;
leafpad: cannot open display.
Remark: Rox, the file manager, is running on both server and desktop.
I found following mistake on server;
$ locale
Code:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_HK.UTF-8
LC_CTYPE="en_HK.UTF-8"
LC_NUMERIC="en_HK.UTF-8"
LC_TIME="en_HK.UTF-8"
LC_COLLATE="en_HK.UTF-8"
LC_MONETARY="en_HK.UTF-8"
LC_MESSAGES="en_HK.UTF-8"
LC_PAPER="en_HK.UTF-8"
LC_NAME="en_HK.UTF-8"
LC_ADDRESS="en_HK.UTF-8"
LC_TELEPHONE="en_HK.UTF-8"
LC_MEASUREMENT="en_HK.UTF-8"
LC_IDENTIFICATION="en_HK.UTF-8"
LC_ALL=
The first 3 lines are warning. How to fix them? Tks
Edit:
Performed following steps to fix the problem of above warning on the 3 lines mentioned;
$ sudo apt-get install language-pack-en-base
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
language-pack-en
Recommended packages:
language-support-en
The following NEW packages will be installed:
language-pack-en language-pack-en-base
......
......
Setting up language-pack-en (7.04+20070601) ...
Setting up language-pack-en-base (7.04+20070412) ...
Generating locales...
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
en_IN.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... up-to-date
en_ZA.UTF-8... done
en_ZW.UTF-8... done
Generation complete.
$ locale
Code:
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
(Remark: what command shall I run here instead of a reboot ?
$ sudo dpkg-reconfigure locales
??? Tks )
Rebooted server.
$ locale
Code:
LANG=en_HK.UTF-8
LC_CTYPE="en_HK.UTF-8"
LC_NUMERIC="en_HK.UTF-8"
LC_TIME="en_HK.UTF-8"
LC_COLLATE="en_HK.UTF-8"
LC_MONETARY="en_HK.UTF-8"
LC_MESSAGES="en_HK.UTF-8"
LC_PAPER="en_HK.UTF-8"
LC_NAME="en_HK.UTF-8"
LC_ADDRESS="en_HK.UTF-8"
LC_TELEPHONE="en_HK.UTF-8"
LC_MEASUREMENT="en_HK.UTF-8"
LC_IDENTIFICATION="en_HK.UTF-8"
LC_ALL=
The warning on 3 lines gone.
$ echo $LC_ALL ; echo $LANG
$ export LC_ALL=C ; export LANG=C
No complaint.
$ strace -f -o leafpad.strace leafpad
started leadpad
On desktop;
$ xhost + 127.0.0.1
Code:
127.0.0.1 being added to access control list
$ echo $LC_ALL ; echo $LANG
$ export LC_ALL=C ; export LANG=C
No complaint.
$ ssh -Y satimis@192.168.0.10 leafpad
satimis@192.168.0.10's password
It just hung here sometimes and then;
leafpad: cannot open display.
satimis