- Client:
- macOS:
- (First time) Install XQuartz:
brew install --cask xquartz
 
- Start XQuartz:
open -a XQuartz.app
 
 
 
- Server:
- Ubuntu:
- sshnormally into the server:- ssh root@host
 
- Make sure X11 apps are installed:
apt-get update && DEBIAN_FRONTEND=noninteractive TZ=${TZ:-UTC} apt-get -y install x11-apps
 
- Update the sshd config to allow remote X11:
sed -i 's/.*X11Forwarding no/X11Forwarding yes/g' /etc/ssh/sshd_config && sed -i 's/.*X11UseLocalhost yes/X11UseLocalhost no/g' /etc/ssh/sshd_config
 
- Update the sshd runtime configuration:
kill -HUP $(cat /var/run/sshd.pid)
 
- exitthe- sshsession
- sshagain with X11 forwarding:- ssh -Y root@host
 
- Test some X11 app
xclock
 
 
 
Previous Section (Linux basics Recipe) | 
Next Section (Linux Override Core Dump Processing) | 
Back to Table of Contents