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
| #!/bin/sh | |
| #create a new chain named SHADOWSOCKS | |
| iptables -t nat -N SHADOWSOCKS | |
| # Ignore your shadowsocks server's addresses | |
| # It's very IMPORTANT, just be careful. | |
| iptables -t nat -A SHADOWSOCKS -d 163.44.132.189/32 -j RETURN | |
| iptables -t nat -A SHADOWSOCKS -d 0.0.0.0/8 -j RETURN |
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
| // install | |
| // npm i gulp-cache gulp-imagemin imagemin-pngquant imagemin-zopfli imagemin-mozjpeg imagemin-giflossy -f | |
| // node node_modules/jpegtran-bin/lib/install.js | |
| // node node_modules/gifsicle/lib/install.js | |
| // node node_modules/zopflipng-bin/lib/install.js | |
| // node node_modules/mozjpeg/lib/install.js | |
| // node node_modules/giflossy/lib/install.js | |
| // node node_modules/pngquant-bin/lib/install.js |
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": "laravel/laravel", | |
| "description": "The Laravel Framework.", | |
| "keywords": ["framework", "laravel"], | |
| "license": "MIT", | |
| "type": "project", | |
| "require": { | |
| "php": "^7.1.3", | |
| "fideloper/proxy": "^4.0", | |
| "laravel/framework": "5.6.*", |
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 | |
| # Reference guides: | |
| # https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF | |
| # https://pve.proxmox.com/wiki/Pci_passthrough | |
| # https://pve.proxmox.com/wiki/Nested_Virtualization | |
| # Remember to turn on SVM in BIOS and disable CSM | |
| # Update packages |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
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
| Assuming you have followed all the steps to install / setup WSL2 -> https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
| **Tested on Ubuntu 20.04** | |
| Step 1 - Find out default gateway and DNS servers | |
| - Navigate to `Control Panel\Network and Internet\Network Connections` | |
| - Right click on relevant connection type WiFi or Ethernet and select `Status` | |
| - Status screen will be displayed, click on `Details` button | |
| - Network Connection details screen will be displayed | |
| - Note down `IPv4 default gateway` and `IPv4 DNS Servers` if available |