Turtlebot3 Waffle Nuc X11 Remote Display 20240825

From wikidb
Revision as of 10:37, 26 August 2024 by Edc (Talk | contribs)

Jump to: navigation, search

Reference

Log

On Sisters

wayland
eepp@sisters:~$ sudo emacs /etc/gdm3/custom.conf &
[1] 3319
eepp@sisters:~$ cd /etc/gdm3

[1]+  Stopped                 sudo emacs /etc/gdm3/custom.conf  (wd: ~)
(wd now: /etc/gdm3)
eepp@sisters:/etc/gdm3$ cp custom.conf custom.conf.org
cp: cannot create regular file 'custom.conf.org': Permission denied
eepp@sisters:/etc/gdm3$ sudo cp custom.conf custom.conf.org
[sudo] password for eepp: 
eepp@sisters:/etc/gdm3$ sudo emacs /etc/gdm3/custom.conf &
[2] 3440
eepp@sisters:/etc/gdm3$ diff custom.conf.org custom.conf
7c7
< #WaylandEnable=false
---
> WaylandEnable=false
[2]-  Done                    sudo emacs /etc/gdm3/custom.conf

On Adams


eepp@sisters:~$ ssh -X eepp@10.0.0.222
eepp@10.0.0.222's password: 
Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 6.8.0-40-generic x86_64)

 * Documentation:  https://help.ubuntu.com


eepp@adams:ssh$ pwd
/etc/ssh
eepp@adams:ssh$ ls
 moduli           sshd_config              ssh_host_ed25519_key.pub
'#ssh_config#'    sshd_config.d            ssh_host_rsa_key
 ssh_config       ssh_host_ecdsa_key       ssh_host_rsa_key.pub
 ssh_config.d     ssh_host_ecdsa_key.pub   ssh_import_id
 ssh_config.org   ssh_host_ed25519_key
eepp@adams:ssh$ sudo cp sshd_config sshd_config.org
eepp@adams:ssh$ sudo emacs sshd_config
X11 connection rejected because of wrong authentication.
Display localhost:10.0 unavailable, simulating -nw
eepp@adams:ssh$ 
eepp@adams:ssh$ 
eepp@adams:ssh$ 
eepp@adams:ssh$ 
eepp@adams:ssh$ 
eepp@adams:ssh$ diff sshd_config.org sshd_config
91,92c91,92
< #X11DisplayOffset 10
< #X11UseLocalhost yes
---
> X11DisplayOffset 10
> X11UseLocalhost no
eepp@adams:ssh$ 
eepp@adams:ssh$ 



eepp@adams:ssh$ sudo systemctl restart sshd



Test

epp@sisters:~$ DISPLAY=:1 ssh -X n5
ssh: Could not resolve hostname n5: Temporary failure in name resolution

failed

try


eepp@sisters:~$ DISPLAY=:1 ssh -X n5
ssh: Could not resolve hostname n5: Temporary failure in name resolution
eepp@sisters:~$ DISPLAY=:1 ssh -X 10.0.0.222
eepp@10.0.0.222's password: 
Welcome to Ubuntu 22.04.4 LTS (GNU/Linux 6.8.0-40-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

Expanded Security Maintenance for Applications is not enabled.

12 updates can be applied immediately.
5 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable

35 additional security updates can be applied with ESM Apps.
Learn more about enabling ESM Apps service at https://ubuntu.com/esm

Last login: Mon Aug 26 10:27:39 2024 from 10.0.0.159
-bash: //: Is a directory
-bash: //: Is a directory
eepp@adams:~$