Skip to content

INSTALL NVIDIA 1080TI DRIVERS ON UBUNTU 20.04

These directions are quick, easy How-To on to install Nvidia 1080TI drivers, and these next steps will give you the exact commands that I use to get the drivers installed on my headless mining rig.

Open Terminal
sudo bash
apt-get install ubuntu-drivers-common
y

Check nvidia driver version
ubuntu-drivers devices

The following will show on the screen
vendor   : NVIDIA Corporation
model    : GP102 [GeForce GTX 1080 Ti]
driver   : nvidia-driver-440-server – distro non-free
driver   : nvidia-driver-450 – distro non-free recommended
driver   : nvidia-driver-450-server – distro non-free

Select which driver you want….in my case I selected 450 server, so then I run
apt install nvidia-driver-450-server

Reboot after the install finishes

Login
Open a terminal
sudo bash
nvidia-smi

This will verify install nvidia 1080TI drivers have been installed properly

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

INSTALLING CUDA ON UBUNTU SERVER 20.04

  • Mining

In the past, installing CUDA onto Ubuntu Servers, used in mining, was a large undertaking. With the latest release of Ubuntu, everything has changed. Thankfully. Now we are able to easily go through the steps of installing cuda on ubuntu server 20.04. The steps below outline what you will need to do to make this work. I have had success installing either before, or after, I already have the 1080ti drivers on the system. It may not be the same in the future, but as of this writing today, all you have to do are the few steps below.

Open a Terminal
sudo bash
apt-get update
apt install nvidia-cuda-toolkit
y

Cuda will now run the installation. It will take a while, so sit tight. Once it is done installing cuda on ubuntu server 20.04…you are done. Enjoy!

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 15.10 BROKEN ON UBUNTU 20.04

Teamviewer 15.10 on Ubuntu 20.04, does not work, end of story…For any of you who have been using teamviewer for a while now on your personal systems, teamviewer being broken on Ubuntu is nothing new…keeps happening, and is a HUUUUUGE pain, especially when you are running a mining rig at your house, and you are away for work. Well to fix it this time it is time is a bit easier, however I am not sure how long this fix will last. Teamviewer has an almost magical way of ruining these workarounds. Now, onto the fix…This is the quick fix to remove and replace teamviewer, with a working version of it on Ubuntu Server 20.04

Open a terminal
sudo bash
apt remove teamviewer
apt-get update
apt-get install gdebi-core
wget https://download.teamviewer.com/download/linux/version_14x/teamviewer-host_amd64.deb
dpkg -i teamviewer-host_amd64.deb

If it fails, that’s ok because we will fix it here
apt-get -f install
y

After it installs successfully then type
teamviewer info

Take a note of your Teamviewer ID, you will need it later
teamviewer passwd YOURPASSWORDHERE

Now open teamviewer on another computer that you are logged into

Add the computer using the menu “Add Computer“ enter in your Teamviewer ID and the Password you used in YOURPASSWORDHERE

You can now Connect and your workaround to teamviewer 15.10 on ubuntu 20.04 should now be in place

DISABLE WINDOWS 10 FIREWALL NOTIFICATIONS

So, I have disabled my windows firewall….because it breaks some of the apps I run on the daily. Now that the firewall is disabled, about 15 seconds after using my computer (right after it turns on), i get this extremely annoying sound, and a very annoying popup alerting me to the fact that I have disabled it. Yes Microsoft, I know I disabled it…i dont like your firewall. It kinda sucks. Infact it is about the worst one I have ever used. So i keep it off. BUUUUT the notification continues to pester me on the daily….To disable windows 10 firewall notifications, I ran the following command set, and it worked for a bit…but the annoying popups persist. Hopefully these steps help you.

Click the Type Here to Search bar

Search for Control Panel

Select Security and Maintenance

Select Change Security and Maintenance Settings

Under the Security Messages section

Uncheck Network Firewall

Reboot, and watch to see it it is now fixed

IMAGEMAGICK CONVERTING PDF TO IMAGE FAILS [SOLVED]

When attempting to convert a PDF to a Tiff, using imagemagick, converting fails and the following error occurs:

convert-im6.q16: attempt to perform an operation not allowed by the security policy PDF' @ error/constitute.c/IsCoderAuthorized/408. convert-im6.q16: no images definedoutput.tiff’ @ error/convert.c/ConvertImageCommand/3258.

To fix the error:
Open a Terminal

sudo bash

nano /etc/ImageMagick-6/policy.xml

scroll down near the bottom of the file and change
policy domain=”coder” rights=”none” pattern=”PDF”
to
policy domain=”coder” rights=”read | write” pattern=”PDF”

Save, exit, and you can now convert the PDF to Tiff

“MySQL: Host ‘IP’ is not allowed to connect to this MariaDB server”

If you are trying to connect Power BI to a Mysql/MariaDB server and receive the error “MySQL: Host ‘IP’ is not allowed to connect to this MariaDB server” perform the following

Login into the server via ssh

sudo bash

mysql -u root -p

Enter your mysql password

Type in the following:

CREATE USER 'newusernamehere'@'localhost' IDENTIFIED BY 'newpassword';
GRANT ALL PRIVILEGES ON *.* TO 'newusernamehere'@'localhost' WITH GRANT OPTION;
CREATE USER 'newusernamehere'@'%' IDENTIFIED BY 'newpassword';
GRANT ALL PRIVILEGES ON *.* TO 'newusernamehere'@'%' WITH GRANT OPTION;

Now retry your connection in Power BI using the new user and password you specified above

OPEN PORT 3306 ON UBUNTU 20.04 SERVER WITH MARIADB

Login to the server via ssh

sudo bash

nano /etc/mysql/mariadb.conf.d/50-server.cnf

Uncomment the line:
#port = 3306

Change 127.0.0.1 to the address of your server
bind-address = 192.168.1.100

Save the file, exit, and either reboot the server or restart the service.

PHPMYADMIN ERROR:

The error is as follows:
“The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. Find out why.
Or alternately go to ‘Operations’ tab of any database to set it up there.”

When you click Find Out Why, you see this message
Create a database named ‘phpmyadmin’ and setup the phpMyAdmin configuration storage there.

To solve this, in PHPMYADMIN
Create a new database named phpmyadmin

Click on the PHPMYADMIN logo at the top left to go back to the home page

Click on the Find Out Why

Click Create on the line that says “Create a database named ‘phpmyadmin’ and setup the phpMyAdmin configuration storage there.

The database will setup now

And the error will be fixed

VIEWING TIFF FILES ON UBUNTU DESKTOP 20.04

Using the default setup for Ubuntu, i have run into an issue where I cannot view Tiff Files. I receive the error “Failed to load tiff image”. So the fix for it is as follows:

Open your terminal

sudo bash

apt-get install feh

Once feh installs you can right click on the image and select Properties

Navigate to the Open With tab

Select FEH

Click Set as Default

That’s it. You can now view your tiff images

SETTING UP A CRON JOB FOR SCRAPING THROUGH NORDVPN

If any of you are like me, you find that your scrapers are limited from time to time by the number of requests you can make to a website within a certain period of time. To get around this, you can setup python scraping through nordvpn to automatically change of your IP addresses. There are other programs as well…Tor allows this for free. I personally use NORD, because I have had better performance and the cost is a few dollars per month not to have to deal with the headaches.

So I setup my cron job as follows
Every hour (9:00, 10:00, etc) it will connect to Nord
5 Mins past every hour (9:05, 10:05, etc) it will run my scraper
15 Mins past every hour (9:15, 10:15, etc) it will disconnect from Nord
30 Min past every hour (9:30, 10:30, etc) it will reconnect to Nord (this usually gives it enough time to get a different IP. If you log back in immediately you will attach to the same server. This fixes that.
35 Mins past every hour (9:35, 10:35, etc) it runs the scraper
45 Mins past every hour (9:45, 10:45, etc) it disconnects from Nord

To set this up I run the following

sudo bash

Enter Password

crontab -e

Select 1 (for nano)

Scroll to the bottom of the file and add the following:

0 * * * * /usr/bin/nordvpn connect >> /home/user/cron.log 2>&1
5 * * * * python3 /home/user/scraper.py >> /home/user/cron.log 2>&1
15 * * * * /usr/bin/nordvpn d >> /home/user/cron.log 2>&1
30 * * * * /usr/bin/nordvpn connect >> /home/user/cron.log 2>&1
35 * * * * python3 /home/user/scraper.py >> /home/user/cron.log 2>&1
45 * * * * /usr/bin/nordvpn d >> /home/user/cron.log 2>&1

Save the file, exit, and you are all set. Your scraper will run as directed