In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from threading import Thread | |
app = Flask('') | |
@app.route('/') | |
def home(): | |
return "Hello. I am alive!" | |
def run(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Transform Ubuntu 18.04 or Linux Mint 19 to MacBuntu | |
# https://www.noobslab.com/2018/08/macbuntu-1804-transformation-pack-ready.html | |
# If you want to change another version Ubuntu or Linux Mint? | |
# Search MacBuntu for your version on https://www.noobslab.com/search?q=MacBuntu | |
# Setup workspace | |
WORKSPACE=~/Desktop/macbuntu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Add proxmox gpg key | |
apt_key: | |
url: http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg | |
state: present | |
- name: Add proxmox repository | |
lineinfile: | |
path: /etc/apt/sources.list | |
line: deb http://download.proxmox.com/debian/pve buster pve-no-subscription |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# netplan2NM.sh | |
# Ubuntu server 20.04 Change from netplan to NetworkManager for all interfaces | |
echo 'Changing netplan to NetowrkManager on all interfaces' | |
# backup existing yaml file | |
cd /etc/netplan | |
cp 01-netcfg.yaml 01-netcfg.yaml.BAK |
Hi all. After wanting true color support in Mosh (to use Brow.sh), I also wanted to integrate it more tightly with Windows. Since I reckon more people will be wanting to accomplish this, here is a guide.
- Install Linux Subsystem for Windows if you haven't already (https://docs.microsoft.com/en-us/windows/wsl/install-win10) (I use Ubuntu)
- Make sure you can execute
bash
from a CMD prompt. - Go into the bash environment by executing
bash ~
in CMD prompt - Install Mosh-dev (for up-to-date version) from https://launchpad.net/~keithw/+archive/ubuntu/mosh-dev by doing
sudo add-apt-repository ppa:keithw/mosh-dev
thensudo apt-get update
- Create a new mosh.bat file on your Desktop with the following contents
@echo off