Currently reading articles under label: Linux

GRUB Rescue

When being forced into GRUB rescue mode, run ls and ls <one_partition> to check available partitions and find the one that we should boot from [ref].

Then set prefix & root[ref]:

set root=(hdX,Y)

set prefix=(hdX,Y)/boot/grub

insmod n......

Install R in Ubuntu

UBUNTU 16.04

Option 1:

sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev libssl-dev build-essential

Option 2 (to get newer R version):

with PPA. ref digitalocean

sudo apt install apt-transport-https && \

sudo apt-key adv --keyserver --recv-keys E298A3A825......

Linux init after installation


empty/black screen

If screen blacked out after 1st reboot, the problem is gfxmode $linux_gfx_mode in grub.

Solutions: (for many servers, see solution 3 directly.)

Temporarily delete by pressing "shift" during boot and "e" (edit).

For permernent effect, oficial soluti......

Force Ubuntu desktop Boot into Text Console Mode

Tested in ubuntu deskop 16.


sudo cp /etc/default/grub /etc/default/grub.bak && \

sudo sed -ie 's/GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT="text"/g' /etc/default/grub && \

sudo sed -ie 's/GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="te......

Completely Automatic Unattended Install of Ubuntu

OBS 1: this works only for ubuntu server edition, not desktop version. tested in ubuntu 16 x64.

OBS 2: remember to change some parts to real values, near: # modify to real value !!!

OBS 3: my version need some files in .iso file: "10_linux" & "sources.list".

Warn: the default......

Setup Remote Access (VNC) of Linux Servers

Tested in Ubuntu 16.04 desktop Gnome+Unity in Vmware.

OBS: pure server will automatically start X in reboot and will lack of something, e.g. Default Terminal etc.


TCP port 5900+N (N is monitorId, starts from 1.)


TightVnc allows us to start from a server without X11 a......