Disable ssh password authentication


ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
PermitRootLogin no
PubkeyAuthentication yes

restart ssh daemon

linux screen utility

screen -S name “Launch new screen session”

screen -list “List screen sessions”

screen -r name “Attach to screen”

Ctrl+a, ? Show built in help
Ctrl+a, c Create a new screen
Ctrl+a, Ctrl+a Cycle through screens (just hold Ctrl down, type aa)
Ctrl+a, n Cycle through screens (Next screen)
Ctrl+a, Ctrl+n Another cycle through screens
Ctrl+a, S Split the screen (note the capital S)
Ctrl+a, X Close the split screen you are currently in (note capital X)
Ctrl+a, tab Switch between split screens
Ctrl+a, d Detach from screen session
Ctrl+a, [ Start copy (see below)
Ctrl+a, ] Paste (see below)

from http://www.fprimex.com/linux/screen.html

Google Drive in Ubuntu linux

Google Drive client is’nt available in Ubuntu. Grive – is an open source Linux CLI solution for Google Drive.

Lets install grive

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install grive

Ok, grive is installed. Now i will create a folder in my home direcory and mount my Google Drive there

mkdir -p ~/GDrive
cd ~/GDrive
grive -a

Few words about “grive -a”. When you run grive for the first time “-a ” its an argument to grant it permission to access your Google Drive.
As a result you will get some url. Copy it and paste it into a browser. You will promt to grant permission for grive to use your account. After alll you will get a code which you should paste into a terminal. In a while you can find all your Google Drive files in a folder named ‘GDrive’. Grive cannot sync changes in authomatic mode, so i added a new line into my cron

*/20 * * * * cd /home/alex/GDrive && grive

Thats all fox!