Skip to content

Instantly share code, notes, and snippets.

@chirag773
chirag773 / index.html
Created January 31, 2020 09:14
LGEyyY
<div id="plotDiv"></div>

Note: For nearly in this tutorial, I was SSH’d into my Raspberry Pi from my host Linux system

Note Im using 4gb varrient

Step #1: Update swap file size, boot options, and memory split

Increase swap file size

sudo nano /etc/dphys-swapfile

Scroll down to the configuration which reads: CONF_SWAPSIZE=100 -> CONF_SWAPSIZE=1024

To Install ssh server

-> sudo apt-get install openssh-server

SSH uses the current user when accessing a remote server. To specify a user for an SSH connection

-> ssh username@hostname_or_ip

To connect to a remote host with a custom SSH port number, use the -p flag. For example

Download require dependencies

export DEBIAN_FRONTEND=noninteractive
sudo apt-get -q -y update
sudo apt-get -q -y install build-essential
sudo apt-get -q -y install cmake 
sudo apt-get -q -y install pkg-config 
sudo apt-get -q -y install libpng12-0 libpng12-dev libpng++-dev libpng3 
sudo apt-get -q -y install libpnglite-dev libpngwriter0-dev libpngwriter0c2 
sudo apt-get -q -y install zlib1g-dbg zlib1g zlib1g-dev 
@chirag773
chirag773 / Kubernetes.md
Created December 22, 2019 16:40
flask with kubernetes

sudo apt-get update

sudo apt-get install -y apt-transport-https

Now install docker

sudo curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add

sudo chmod 777 /etc/apt/sources.list.d/

How to Install Docker

  • First, update your existing list of packages:

    ->sudo apt update

  • Next, install a few prerequisite packages which let apt use packages over HTTPS:

    ->sudo apt install apt-transport-https ca-certificates curl software-properties-common