Skip to content
Home » headless

headless

Visit Tacticalware.com for information related to this tag and others. We look forward to assisting in your tech projects with our in-depth knowledgebase…

JUPYTER INSTALLATION ON A HEADLESS RASPBERRY PI 4 RUNNING UBUNTU 20.10

More and More, I am finding my way to Jupyter Notebooks. And guides online are scarce to come by, especially when you are running it on a Raspberry Pi 4. Below is a mixture of a few guides that I had found, and this is what worked for me.

For my setup I am running a Raspberry Pi 4 from a NVME M.2 Drive connected via USB 3.0. I am NOT using the slow micro SD card. To have the same setup as me, follow this guide:
https://tacticalware.com/boot-raspberry-pi-4-from-m-2-usb-drive/

After your Pi recognizes the M.2 NVME Drive, I then use Raspberry Pi Imager to write Ubuntu Server 20.10 to the USB Drive. Then I plug it into the Pi, to get ready for the steps below

Now boot your Raspberry Pi 4 and Login
Then
sudo bash
apt-get update
apt-get dist-upgrade
apt-get install net-tools
sudo hostnamectl set-hostname Jupyter
reboot
sudo bash
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo apt-get install python3-pip
sudo pip3 install –upgrade pip
sudo apt-get install npm
sudo npm install -g configurable-http-proxy
sudo -H pip3 install notebook jupyterhub
jupyterhub –generate-config
sudo mv jupyterhub_config.py /root
nano /root/jupyterhub_config.py
ctrl +w
http://:8000

change to http://:8888
uncomment and delete space on this line c.JupyterHub.bind_url = ‘http://:8888’
ctrl +x
y
jupyterhub -f /root/jupyterhub_config.py

nano /lib/systemd/system/jupyterhub.service
[Unit]
Description=JupyterHub Service
After=multi-user.target

[Service]
User=root
ExecStart=/usr/local/bin/jupyterhub –config=/root/jupyterhub_config.py
Restart=on-failure

[Install]
WantedBy=multi-user.target

ctrl + x to exit
y to save

sudo systemctl daemon-reload
sudo systemctl start jupyterhub
sudo systemctl enable jupyterhub
sudo systemctl status jupyterhub.service

on a different computer
open an internet browser
http://Jupyter:8888
login as any user

Back on the Raspberry Pi
sudo -H pip3 install testresources
sudo -H pip3 install jupyterlab
jupyter serverextension enable –py jupyterlab –system
nano /root/jupyterhub_config.py
uncomment and modicy the c.Spawner.default line to reflect the following:
c.Spawner.default_url = ‘/lab’
ctrl + x
to exit
y to save
sudo apt-get install libatlas-base-dev
y
sudo -H pip3 install numpy
pip3 install seaborn
pip install Cython numpy
pip install cmake

sudo addgroup jupyter_admin
sudo adduser tacticalware
sudo usermod -aG jupyter_admin tacticalware
nano /root/jupyterhub_config.py

ctrl +x to exit
y
to save
Add this to the end of the file
c.PAMAuthenticator.admin_groups = {‘jupyter_admin’}
ctrl + x to exit

You are now finished. On the other computer
Open an internet browser
http://Jupyter:8888
And play!

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Mining Veil with CryptoDredge 0.18.0, CUDA 10, on Ubuntu 18.04 with NVidia 1080 TI Cards

  • Mining

This Guide Assumes You Have the OS and Drivers Already Installed

Login to the headless rig

At the command prompt type:

sudo bash

apt-get update

apt-get upgrade

reboot

Log back into the rig

sudo bash

mkdir /miner && cd /miner

wget

tar zxvf CryptoDredge_0.18.0_linux_x64_cuda_10.0.tar.gz

cd CryptoDredge_0.18.0

nano run-veil-bsod.sh

Enter in the following all on one single line:


./CryptoDredge -a x16rt -o stratum+tcp://us.bsod.pw:2532 -u VN1umGknb7NqoL9Fj6d5oU34ZFCs7NbySU -p c=VEIL -i 8

Save the file and Exit

chmod +x run-veil-bsod.sh

screen ./run-veil-bsod.sh

That’s it. Thanks for reading.

The hardware that I used in this guide:
Gigabyte AORUS GeForce GTX 1080 Ti (QTY 6):
https://amzn.to/2JqvXC8

Motherboard (QTY 1): 
https://amzn.to/2JqGJZ7

CPU (QTY 1): 
https://amzn.to/3qevp2X

Memory (QTY 1): 
https://amzn.to/2JqHn8Z

Hard Drive (QTY 1):  
https://amzn.to/3lic3X5

Risers (QTY 6):  
https://amzn.to/33rIgVE

Power Supplies (QTY 2):
https://amzn.to/3fTRpLR

Add2PSU (QTY 1):
https://amzn.to/39s4URY

Power Switch (QTY 1):  
https://amzn.to/3ljmNVk

TeamViewer 14 Login Issue on Ubuntu 18.04.01

How-To Remove TeamViewer 14 From Ubuntu 18.04

Teamviewer 14 does not work on Ubuntu 18.04 at the present time. When connecting to a Headless Ubuntu Server using Teamviewer, you are prompted to login, yet your credentials do not work, and the login screen continues to loop with Login, and Invalid Password.

These steps will help you remove the product and replace it with a version or product that does work.

Use Putty locally on the same network your headless system is on

Login

sudo bash

apt-get remove teamviewer

y

reboot

Now time to replace it with a product that works.

Headless Mining RVN with Z-Enemy on Ubuntu 18.04

Using NVIDIA 1080 TI Cards, Ubuntu Server 18.04, and Z-Enemy 1.26 to Mine Raven

Here is the quick installation notes on how to mine Raven.  My hashrate has almost doubled over running ccminer, on the same coin and same pool.

Log into the rig

sudo bash

apt-get -y install libcurl3

mkdir /miner && mkdir /miner/drivers && mkdir /miner/drivers/z-enemy
cd /miner/drivers/z-enemy

wget

tar zxvf z-enemy-1.26-cuda100-Linux.tar.gz

nano Raven.sh

Insert the following into the file#

#!/bin/sh

nvidia-smi -pm 1
nvidia-smi -acp 0
nvidia-smi -pl 300
sleep 2
export GPU_FORCE_64BIT_PTR=0
export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100

./z-enemy -a x16r -o stratum+tcp://ravenminer.com:3636 -u RMzHAFgqgjV5qLkajBjLQ325V7HWBpG3d9 -p d=16 -i 20

CTRL + X to Save and Exit

chmod +x Raven.sh

./Raven.sh

You are now mining! Thanks for reading!

The hardware that I used in this guide:
Gigabyte AORUS GeForce GTX 1080 Ti (QTY 6):
https://amzn.to/2JqvXC8

Motherboard (QTY 1): 
https://amzn.to/2JqGJZ7

CPU (QTY 1): 
https://amzn.to/3qevp2X

Memory (QTY 1): 
https://amzn.to/2JqHn8Z

Hard Drive (QTY 1):  
https://amzn.to/3lic3X5

Risers (QTY 6):  
https://amzn.to/33rIgVE

Power Supplies (QTY 2):
https://amzn.to/3fTRpLR

Add2PSU (QTY 1):
https://amzn.to/39s4URY

Power Switch (QTY 1):  
https://amzn.to/3ljmNVk