Steps in getting an X-terminal from Raspberry Pi Using Mac OS X
1. Enable X11 Forwarding with the “X11Forwarding yes” option set in “/private/etc/sshd_config” for your SSH daemon on Mac in order to receive X11 client request back from raspberry pi through ‘ssh‘ with the -X option set.user@mac~$ vi /private/etc/sshd_config
uncomment and set to yes "X11Forwarding yes"
2. Allow remote client to use Mac's display
user@mac~$ xhost +
3. Login into the raspberry pi with -X option to install packages
user@mac~$ ssh -X pi@192.168.1.10
4. Install packages on the raspberry pi
pi@raspberrypi ~ $ sudo apt-get install libnss3
pi@raspberrypi ~ $ sudo apt-get install x11-apps
pi@raspberrypi ~ $ export DISPLAY=192.168.1.12:0
6. Open x11 terminal from raspberry to the Mac
pi@raspberrypi ~ $ x-terminal-emulator
OR
pi@raspberrypi ~ $ lxterminal
7. Test xclock or xeyes
pi@raspberrypi ~ $ xclock
OR
pi@raspberrypi ~ $ xeyes
8. From another terminal on Mac, you may directly execute
user@mac~$ ssh -X -f pi@192.168.1.10 xcalc -bg yellow -fg blue
pi@192.168.1.10's password:
user@mac~$ ssh -X -f pi@192.168.1.10 xeyes -bg white -fg blue
pi@192.168.1.10's password:
No comments:
Post a Comment