Unset DBUS SESSION ADDRESS Unset XDG RUNTIME DIR

[Pages:7]Installation of GUI How to Install a Desktop (GUI) on an Ubuntu Server () sudo apt-get update sudo apt-get upgrade sudo apt-get install tasksel sudo apt-get install lightdm sudo tasksel sudo reboot

Installation of Remote Desktop How To Install XRDP (Remote Desktop) on Ubuntu 20.04 ? TecAdmin sudo apt install xrdp -y sudo systemctl status xrdp sudo usermod -a -G ssl-cert xrdp sudo vi /etc/xrdp/startwm.sh

Unset DBUS_SESSION_ADDRESS Unset XDG_RUNTIME_DIR

Add above lines above the line test -x (line 32 around) sudo systemctl restart xrdp sudo systemctl status xrdp sudo ufw status sudo ufw default allow outgoing sudo ufw default deny incoming cat /etc/default/ufw sudo ufw allow ssh sudo ufw enable sudo systemctl status ufw.service sudo ufw allow 3389/tcp sudo ufw reload

Stopping network disconnection at idle time Stop network disconnecting in Ubuntu - Tips, Tricks and Tutorials / Tips & Tricks - Ubuntu MATE Community (ubuntu-munity)

sudo vi /etc/avahi/avahi-daemon.conf

change the word =local

to =.alocal

sudo vi /etc/default/avahi-daemon

AVAHI_DAEMON_DETECT_LOCAL=0

First perform the steps mentioned in the above link. Next, perform the below provided steps:

sudo systemctl disable systemd-networkd-wait-online.service

sudo systemctl mask systemd-networkd-wait-online.service

sudo reboot

(is preferred. But you can continue further steps. However, remember that, do not

keep the system idle.)

Installation of OpenSSL related ones (Important for R)

sudo apt-get install libssl-dev sudo apt-get install openssl sudo apt install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev

Installation of CURL and python-related libraries

Install CURL and associated python libraries properly sudo apt install curl sudo apt install libcurl4-openssl-dev sudo apt-get install python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev zlib1gdev sudo apt install python3-pip sudo pip install click sudo pip install mitmproxy

Installation of Anti-virus How to Install and Use ClamAV on Ubuntu () sudo apt-get install clamav clamav-daemon mailutils -y sudo systemctl stop clamav-freshclam sudo freshclam sudo apt-get install clamtk sudo systemctl start clamav-freshclam

sudo systemctl enable clamav-freshclam sudo systemctl status clamav-freshclam

Installation of TexLive sudo apt-get install texlive-xetex texlive-full texstudio texmaker texlive-latex-extra pandoc

Installation of NPM and NodeJS How to Install Node.js on Ubuntu and Update npm to the Latest Version () curl -o- | bash Restart the terminal nvm install 14.4.0 sudo apt update && sudo apt upgrade

Installation of Anaconda sudo apt update && sudo apt upgrade apt-get install libgl1-mesa-glx libegl1mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 l ibxi6 libxtst6 wget sh Anaconda3-2021.05-Linux-x86_64.sh source .bashrc conda config --set auto_activate_base false

The above command prevents the start-up of (base) environment by default

Installation of JupyterHub using Conda Environment

Must READ: If you install the packages in the conda environment and config.py file, if u are calling all the files from the coda enviromet, then no need to add sudo for pip installations. If you are setting up the system commands in the config.py file, then u need to install in system. conda create --name jupyterHub python=3.8 conda activate jupyterHub

pip install --upgrade pip conda install -c conda-forge nodejs conda install -c conda-forge jupyterlab conda install -c conda-forge jupyterhub conda install notebook sudo ln -s /usr/bin/nodejs /usr/bin/node npm install -g configurable-http-proxy jupyterhub --generate-config -f ~/jupyterhub_config.py Add the below lines in vi ~/jupyterhub_conf.py

c.PAMAuthenticator.open_sessions = False c.JupyterHub.bind_url = '' c.Spawner.cmd = ['/home/uday/anaconda3/envs/jupyterHub/bin/jupyterhub-singleuser'] c.JupyterHub.hub_bind_url = '' c.JupyterHub.hub_port = 8082

c.mand = '/usr/local/bin/configurable-http-proxy'

c.Spawner.cmd=["jupyter-labhub"]

chmod -R 755 ~ sudo /home/uday/anaconda3/envs/jupyterHub/bin/jupyterhub -f ~/jupyterhub_config.py

Test whether the jupyterHub is working properly or not. If the above command is not working properly, then perform the following steps sudo apt install nodejs check for node and npm versions by typing: node -v and npm -v conda deactivate jupyterHub conda activate jupyterHub sudo /home/uday/anaconda3/envs/jupyterHub/bin/jupyterhub -f ~/jupyterhub_config.py If the problem still persists, perform the below 8 steps, and rejoin the jupyterHub environment

Ease of Usage by setting up links:

sudo ln -s /home/uday/anaconda3/envs/jupyterHub/bin/jupyter /usr/bin/jupyter sudo ln -s /home/uday/anaconda3/envs/jupyterHub/bin/jupyterhub /usr/bin/jupyterhub sudo ln -s /home/uday/anaconda3/envs/jupyterHub/bin/jupyterhub-singleuser /usr/bin/jupyterhubsingleuser

Start is very simple: sudo jupyterhub -f ~/jupyterhub_config.py

Installation of JupyterHub directly on Machine (not advisable) sudo apt install python3-pip python3-dev sudo -H pip3 install --upgrade pip sudo pip3 install --upgrade pip sudo pip install jupyter sudo python3 -m pip install notebook sudo python3 -m pip install jupyterhub sudo npm install -g configurable-http-proxy jupyter serverextension enable --py jupyterlab --sys-prefix conda create --name jupyterHub python conda activate jupyterhub conda install python jupyterhub --generate-config -f ~/jupyterhub_config.py Open the ~/jupyterhub_config.py and add the following lines

c.PAMAuthenticator.open_sessions = False c.JupyterHub.bind_url = '' c.Spawner.cmd = ['/home/uday/anaconda3/envs/jupyterHub/bin/jupyterhub-singleuser'] c.JupyterHub.hub_bind_url = '' c.JupyterHub.hub_port = 8082

pip install PyHamcrest ipyparallel jupyterlab notebook EDIT jupyterhub_config.py file sudo ufw allow 8000/tcp sudo ufw reload

sudo /home/uday/anaconda3/bin/jupyterhub -f ~/jupyterhub_config.py If successfully in starting jupyterHub, then immediately close the jupyterHub by pressing control + C and run it with nohup

nohup sudo /home/uday/anaconda3/bin/jupyterhub -f ~/jupyterhub_config.py &

Installing plugins sudo npm install puppeteer wget sudo dpkg -i pandoc-2.14.2-1-amd64.deb sudo apt install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3

libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

conda install nbconvert (try with sudo if the error persists) pip install nbconvert[webpdf] (try with sudo if the error persists) sudo jupyter nbconvert --to webpdf --allow-chromium-download Untitled2.ipynb

conda install -c conda-forge jupyterlab-latex jupyter_contrib_nbextensions jupyter_nbextensions_configurator jupyterlab-drawio jupyterlab_execute_time ipympl ipywidgets

jupyter labextension install jupyterlab-spreadsheet pip3 install jupyter-tabnine --user jupyter nbextension install --py jupyter_tabnine --user jupyter nbextension enable --py jupyter_tabnine --user jupyter serverextension enable --py jupyter_tabnine --user jupyter labextension install @jupyterlab/debugger pip3 install pami sklearn tensorflow sklearn-extensions pyspark oauthenticator RISE psycopg2binary pip install plotly==5.3.1 pip install -U sshkernel

sudo pip install jupyter_contrib_nbextensions

sudo jupyter contrib nbextension install ?system

sudo pip install jupyter_nbextensions_configurator

sudo jupyter nbextensions_configurator enable --system

python -m sshkernel install --sys-prefix

Study this material for sshkernel

Installation of R and IRkernal

1. Install the R software

sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common

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

E298A3A825C0D65DFD57CBB651716619E084DAB9

sudo add-apt-repository 'deb focal-cran40/'

sudo apt install r-base

sudo apt install build-essential

2. conda install -c r r-irkernel (try not to run in environments. Deactivate all environments and run

the code)

sudo /home/uday/anaconda3/condabin/conda install -c r r-irkernel

sudo R

3. Execute the following commands

catalog/article/setup-jupyter-notebook-r (Type the below commands in R shell)

a. install.packages('IRkernel')

b. IRkernel::installspec(user = FALSE) because we are running in an environment

i. sudo ln -s /home/uday/anaconda3/bin/jupyter /usr/bin/jupyter

if

any problem occurs

c. install.packages("devtools")

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download