Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Sunday, December 12, 2021

update Labda from 18 to LTS 20.4.x

In Lambda server root account. 

$sudo apt update

install the necessary packages (python, nvidia docker etc)


$sudo apt upgrade

This runs for a while, with many heading on focal shown on screen

chose N to keep ssh_config

13:20, a gui-window popped-up, chose English US as keyboard

13:22, Yes to restart service

13:29 close all chromium browser window update

INFO waiting for automatic snapd to restart

13:31, passed, and moving forward, many lines printed on screen

13:39, updating database for manual pages ........

13:48 searching for obsolete software

13:58 fetch and download can take several hours, continue? chose Yes. 

13:59. system update is complete. Restart? Yes. 

14:02, user log in window appeared. 

Run partial update using "software & update" tool as lambda root. 

TODO: need to test cuda and GPU support. 








Thursday, October 29, 2020

Ubuntu 18.04 LTS apt get install R4.0.3

 

see: 

https://askubuntu.com/questions/1237102/problem-installing-r-4-0-on-ubuntu-18-04



 sudo apt remove r-base


 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/'


sudo apt update
sudo apt install r-base

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.

Tuesday, June 27, 2017

Google Drive install, Ubuntu Virtual machine (error)

Inside of Ubuntu virtual machine:

https://askubuntu.com/questions/544646/how-to-install-google-drive-on-ubuntu-14-04

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install grive
 
 
 hqin@qin2-VirtualBox:~$ sudo /usr/bin/grive
Please run grive with the "-a" option if this is the first time you're accessing your Google Drive!
hqin@qin2-VirtualBox:~$ sudo /usr/bin/grive -a 

Then copy-paste a link, loginto GoogleAcccount to get an authentication code. 

It then hangs. 


Thursday, September 15, 2016

Ubuntu java install



sudo apt-get update

sudo apt-get install default-jre 
 
Also: tried "sudo nano -w /etc/enviroment", but it did not work. 

Tuesday, January 20, 2015

Ubuntu LTS 14.04 installation and basic usage


Install Ubuntu LTS 14.04 to an old Dell laptop with LTS 12.

Ubuntu LTS14.04  was written on a DVD.

The installation asks for internet connection, but gave option to upgrade LTS v12. I was asked to enter username and password. Presumable the old directory will be over-written? (No, this was not the case. Old directory was kept there. )

Near the end of the installation, a warning saying that some application need to reinstalled. Then it asked for restart.

Somehow, the language was set to Chinese.  I figure out that "shift" can switch between language input modes.