Find Process behind UI #https://askubuntu.com/a/138010 xprop _NET_WM_PID | sed 's/_NET_WM_PID(CARDINAL) = //' | ps `cat` R and Rstudio Install rjava on ubuntu 18.10: this was essential: https://stackoverflow.com/a/52110207 Install R and RStudio with RJava, RGL, JGR, etc. # Install dependencies: sudo apt libssl-dev mesa-common-dev # for rgl https://stackoverflow.com/a/52840933 sudo apt install libftgl2 libcgal-dev libglu1-mesa-dev libglu1-mesa-dev libx11-dev libfreetype6-dev # Install R ## Fix Java path sudo R CMD javareconf ## Apply this fix: https://stackoverflow.com/a/52110207 # Install utils : JGR, Deducer, etc. update.packages(ask = FALSE, checkBuilt = TRUE) install.packages(c("JavaGD","JGR","Deducer")) ##If JGR is segfaulting, downgrading seems to help install_version("rJava", version = "0.9-8")