Coder Social home page Coder Social logo

fastsetup's Introduction

fastsetup

Setup all the things

First, do basic ubuntu configuration, such as updating packages, and turning on auto-updates:

sudo apt update && sudo apt -y install git
git clone https://github.com/fastai/fastsetup.git
cd fastsetup
sudo ./ubuntu-initial.sh
# wait a couple of minutes for reboot, then ssh back in
# If you're using WSL (Windows) use `sudo ./ubuntu-wsl.sh` instead of the above line

Then, optionally, set up dotfiles:

source dotfiles.sh

...and set up conda:

source setup-conda.sh
. ~/.bashrc
conda install -yq mamba

To set up email:

sudo ./opensmtpd-install.sh

To test email, create a text file msg containing a message to send, then send it with:

cat msg |  mail -r "x@$(hostname -d)" -s 'subject' EMAIL_ADDR

Replace EMAIL_ADDR with an address to send to. You can get a useful testing address from mail-tester.

NVIDIA drivers

To install NVIDIA drivers, if required:

ubuntu-drivers devices
sudo apt-fast install -y nvidia-XXX{-server}
sudo modprobe nvidia
nvidia-smi

WSL-only:

Install the latest NVIDIA driver on your Windows PC running WSL Then do a special install of cuda

sudo apt-key del 7fa2af80
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin
sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-wsl-ubuntu-11-8-local_11.8.0-1_amd64.deb
sudo dpkg -i cuda-repo-wsl-ubuntu-11-8-local_11.8.0-1_amd64.deb
sudo cp /var/cuda-repo-wsl-ubuntu-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-fast install -y cuda
nvidia-smi

(WSL-only): Don't worry if nvidia-smi reports "Internal Error" under the "Processes" heading.

If it's working, you should still see part of your GPU name, and how much memory is available in the first heading.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.