Friday, August 11, 2023

How to Show Remote Ubuntu Desktop screen from Windows computer

Setup ssh on Ubuntu

On Ubuntu computer, apt install ssh to install/enable sshd

check ip address of your Ubuntu computer using ifconfig

in my case, it is 192.168.11.103


Connect Ubuntu from Windows computer using Tera term via SSH

http://www.teraterm.org/

install Teraeterm Menu, and right click Teraterm Menu icon on system tray and add your Ubuntu computer ip address, username, password and enable ssh. left click Teraterm menu icon and choose your Ubuntu connection profile and connect to Ubuntu.


Determine your Windows computer IP address

run cmd and type ipconfig. my Windows computer IP is 192.168.11.199


Install Cygwin/X on Windows

 

 Install Cygwin/X onto Windows computer https://x.cygwin.com/

Additionally install xterm and xhost from Cygwin setup


Open C:\cygwin64\bin\startxwin with text editor and modify

serverargs="" with

serverargs="+iglx -wgl -listen tcp"


On windows start menu, choose Cygwin-X → Xwin server to run Cygwin X server.

With Cygwin/X icon on system tray,  choose System tools → XTerm to run xterm


Disable authentication

On XTerm window, run

xhost +


Connect Ubuntu from Windows computer using Teraterm via SSH

left click Teraterm menu and connect to Ubuntu.


Type on Ubuntu console

export DISPLAY="192.168.11.199:0"

gnome-session


to run gnome desktop session onto your Cygwin/X X server. Ubuntu desktop is shown on your Windows computer. Remote Ubuntu computer can be used as a local native Ubuntu computer from Windows







Wednesday, August 2, 2023

How to add language input method to offline Windows 11 22H2 computer

For this topic, Internet information seems a bit unreliable because language feature installation process is completely changed on Windows 11. 

Follow these steps.


Step 1

Download Windows 11 Languages and Optional Features, version 22H2 iso file from your Visual Studio Subscription page.

 

 

Step 2

Mount downloaded iso using Windows Explorer, double-click download iso to mount it.

In my case, iso image is mounted as H:\

 

Step 3

Run cmd as administrator  and type those commands to install language packs. "ja-JP" means Japanese. Change it to your language code. H:\ should be replaced your mounted iso image drive letter.

dism /online /add-capability /capabilityname:Language.Basic~~~ja-JP~0.0.1.0 /source:H:\LanguagesAndOptionalFeatures /LimitAccess
dism /online /add-capability /capabilityname:Language.Handwriting~~~ja-JP~0.0.1.0 /source:H:\LanguagesAndOptionalFeatures /LimitAccess
dism /online /add-capability /capabilityname:Language.OCR~~~ja-JP~0.0.1.0 /source:H:\LanguagesAndOptionalFeatures /LimitAccess
dism /online /add-capability /capabilityname:Language.Speech~~~ja-JP~0.0.1.0 /source:H:\LanguagesAndOptionalFeatures /LimitAccess
dism /online /add-capability /capabilityname:Language.TextToSpeech~~~ja-JP~0.0.1.0 /source:H:\LanguagesAndOptionalFeatures /LimitAccess
dism /online /add-capability /capabilityname:Language.Fonts.Jpan~~~und-JPAN~0.0.1.0 /source:H:\LanguagesAndOptionalFeatures /LimitAccess

 

Step 4

 
Open settings (right click start icon and choose Settings) → Time & Language → Lauguage & region, push "Add a language" button to add language. Some caution message such as your computer is offline may be shown but adding language should work.

Some thoughts

The dism command argument /online does not mean internet connection, it means language pack will be installed onto currently running OS.

Without /LimitAccess option, dism try to connect internet.

It seems /add-package option is deprecated and replaced to /add-capability