Showing posts with label virtual machine. Show all posts
Showing posts with label virtual machine. Show all posts

Tuesday, November 21, 2017

devtools on Ubuntu virtual machine qin64ubuntu, part 1, to be continued


Microsoft R client on Ubuntu virtual machine
https://docs.microsoft.com/en-us/machine-learning-server/r-client/install-on-linux#system-requirements

This insruction fails at the following step:
# Install the packages apt-get install microsoft-r-client-packages-3.4.1

This package did not exist.

============
I then installed microsoft R open
https://mran.microsoft.com/documents/rro/installation

It turns out my 32bit Ubuntu is not supported.

Created a 64 bit Ubuntu virtual machine. Resinallted R, Rstudio, microsoft open R.
However, cannot install 'devtools' due to missing open SSL problem.

sudo apt-get install openssl (wrong for Ubuntu)

then
sudo R
install.pakages('devtools'), error again:

 ---------------------------------------------
   The OpenSSL library that is required to
   build git2r was not found.

   Please install:
     libssl-dev    (package on e.g. Debian and Ubuntu)
     openssl-devel (package on e.g. Fedora, CentOS and RHEL)
     openssl       (Homebrew package on OS X)
   and try again.

   If the OpenSSL library is installed on
   your system but the git2r configuration
   is unable to find it, you can specify
   the include and lib path to OpenSSL with:
   R CMD INSTALL --configure-args='--with-libssl-include=INCLUDE_PATH --with-libssl-lib=LIB_PATH' git2r


See `config.log' for more details
ERROR: configuration failed for package ‘git2r’
* removing ‘/home/hqin/R/x86_64-pc-linux-gnu-library/3.2/git2r’
ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
* removing ‘/home/hqin/R/x86_64-pc-linux-gnu-library/3.2/httr’
ERROR: dependencies ‘httr’, ‘git2r’ are not available for package ‘devtools’
* removing ‘/home/hqin/R/x86_64-pc-linux-gnu-library/3.2/devtools’

$ sudo apt-get install libssl-dev

$ sudo R --vanilla -e 'install.packages("devtools", repos="http://cran.us.r-project.org")'

This time it seems to be working, comping in process, ... ..., error in 'curl' this time.

------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
 * rpm: libcurl-devel (Fedora, CentOS, RHEL)
 * csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------

$ sudo apt-get install libcurl4-openssl-dev

Try again
$ sudo R --vanilla -e 'install.packages("devtools", repos="http://cran.us.r-project.org")'

No error reported this time.

R
library(devtools);

it worked.

Try install microsoft open packages

install.packages("geojsonR")
see https://mran.microsoft.com/package/geojsonR 
It is installed successfuy. 

 How to install revoScaleR on Ubuntu?
This is not clear from microsoft open-R site.

Saturday, July 8, 2017

change disk size of VirtualBox, in osX


http://osxdaily.com/2015/04/07/how-to-resize-a-virtualbox-vdi-or-vhd-file-on-mac-os-x/


applejack:MacOS hqin$ VBoxManage modifyhd /Users/hqin/VirtualBox\ VMs/windows10/
Logs/                windows10.vbox       windows10.vbox-prev  windows10.vdi        
applejack:MacOS hqin$ VBoxManage modifyhd --resize 40000 /Users/hqin/VirtualBox\ VMs/windows10/windows10.vdi 
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
applejack:MacOS hqin$ VBoxManage showhdinfo  /Users/hqin/VirtualBox\ VMs/windows10/windows10.vdi 
UUID:           3a38dc04-987c-46be-9dda-1ded6cece216
Parent UUID:    base
State:          created
Type:           normal (base)
Location:       /Users/hqin/VirtualBox VMs/windows10/windows10.vdi
Storage format: VDI
Format variant: dynamic default
Capacity:       40000 MBytes
Size on disk:   20154 MBytes
Encryption:     disabled

In use by VMs:  windows10 (UUID: 46645298-3095-4fa0-8b95-f625b89c4b24)




Saturday, April 22, 2017

Friday, February 3, 2017

*** host mac, virtual machine guest Ubuntu, share folders



See
https://youtu.be/TcrfrVNNGMU

First, need to run "virtual box guest additions  CD image", because default Ubuntu distribution does have the guest access feature.



After add shared folder in VirtualBox, check "Auto-mount" and "Make Permanent"

in Virtual Ubuntu, $ sudo adduser hqin vboxsf



The restart virtual Ubuntu. Shared folder appear as added drives.