-
download the installer available here:
-
Run the installer, the default options are fine
- (you might want to create shortcuts on the desktop for Xming and XLaunch)
-
Launch Xming
- on your first launch, it will ask you which types of networks you want to allow... if you work in a lot of coffee shops, you should also include Public Networks (excluded by default)
At that point, the xming xwindows server should be running, and ready to use.
NOTE: You will probably need to relaunch after rebooting your computer.
- launch git bash
- add these lines to the end of your local
.bashrc
- i.e. on your computer, not the VM running in the cloud
- you might have to create this file if it doesn't exist
# use XMing local display
export DISPLAY=localhost:0
- source your .bashrc file (only required in your current git-bash session, future sessions will auto-load this file)
source ~/.bashrc
Now you should get x11-forwarding to your local xwindows display, like everyone else
- from git bash (with the DISPLAY variable set, and your .bashrc sourced as described above), ssh into your remote VM instance with x11 forwarding enabled (i.e. using the -X or -Y flags in your SSH command)
ssh -Y daniel@104.155.139.96
(use your own IP address)
- open R, and enter the following commands:
x=c(1:10)
y=(x-5)*(x-5)
plot(x,y)