Skip to content

Instantly share code, notes, and snippets.

@tferr
Last active December 14, 2018 17:22
Show Gist options
  • Save tferr/03d3ea061ff4cfb284c262c725636799 to your computer and use it in GitHub Desktop.
Save tferr/03d3ea061ff4cfb284c262c725636799 to your computer and use it in GitHub Desktop.
Linux Utils

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 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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment