Putty for Windows --> have a X11 in options! https://www.putty.org/
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
https://github.com/canonical/ubuntu-wsl-integration/blob/ac8ad6b20e7263ff5e706e539a3e19e2498135ae/debian/wsl-integration.sh#L43
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
In MS Windows 10 you can run GUI apps (FMX) without no problem!!!
just install a "X"Server on MSWindows to receive the "redirect from XServer lib on Linux"... and define the Linux configuration for this!
apt-get install X11-apps
and add this line in your ".bashrc" file
- sudo vi .bashrc
add this command-line in "last line in your .bashrc file"
now, your .bashrc is open and ready for work... then type this command-line and save the file : export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0 ----------
any XServer will be used! This is done in MSWin11 by default if WSL installed!
in MSWindows 10, install the XServer like "XvcSrv" and add a param "-ac" when run it!
Then, it's just another way to have the same resulted!
just read my post at: http://bbs.2ccc.com/topic.asp?topicid=631045
or in WeDelphi.com with screenshots!
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
I check the conf by: > cat /etc/resolv.conf # This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf: # [network] # generateResolvConf = false nameserver 172.27.16.1
and check with: ~> echo $DISPLAY 172.27.16.1:0
and ping it: ~> ping 172.27.16.1 PING 172.27.16.1 (172.27.16.1) 56(84) bytes of data. 64 bytes from 172.27.16.1: icmp_seq=1 ttl=128 time=0.258 ms 64 bytes from 172.27.16.1: icmp_seq=2 ttl=128 time=0.252 ms 64 bytes from 172.27.16.1: icmp_seq=3 ttl=128 time=0.844 ms 64 bytes from 172.27.16.1: icmp_seq=4 ttl=128 time=1.50 ms ^C --- 172.27.16.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3083ms rtt min/avg/max/mdev = 0.252/0.712/1.496/0.512 ms
the error is:
Unable to init server: Could not connect: Connection refused
sth is wrong but I don't know it...T_T
----------------------------------------------
Bye bye DDRFAN...
if your Linux using Chinese by default, then your "chars" it's ok! all day, a new day (same that be night now :))
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
The linux in WSL is neither Chinese nor other language by default. it's C.UTF8 (a default lang and UTF8 charset). at least my Ubuntu20 in WSL is in that way.
theoretically, it can not display Chinese chars (with out language support and font installed).
so if the Linux is in a VM, like VMware. and we use it via VMware's UI directly, no Chinese char with be readable.
but the Linux in WSL? the only way to acces it, is to use a terminal (before GUI way works).and if this “terminal” support Chinese, the chars displayed nice.
as we all know, the“terminals”we use today is not a physical monitor. they are all Terminal Emulator Programs. and if they provide language support, chars will be OK. even the WSL linux don't support that language.
because the char's hexadecimal code are not changed.
and also cause encoding problem, like famous“锟斤拷”in Chinese... it's another story by GBxxx encoding (China's legal standard) versus Unicode encoding.
-----
The above is really long for my pool English. hope guys may understand :)
----------------------------------------------
Bye bye DDRFAN...
here in Brazil, too! same "Locale" by default! = UTF8
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3