Skip to content

wubinary/Ubuntu20_Auto_ML_DL_Environ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Ubuntu-20.04 Auto ML&DL server πŸ’ͺ

tags: lab z-tech

Intro

This repo is for installing ML&DL enviroment for Ubuntu-20.04, with pytorch1.4.0 tensorflow2.2.0 keras, futhermore vim zshell usefull plugins are installed too.

How to run πŸ’‘

Full Install (ok to run)

  • bag tools
  • zsh
  • vim (ycm)
  • user skel copy
  • nvidia-driver & cuda
  • system python3.8 ml&dl enviroment (pytorch keras tensorflow)
  • anaconda python3.7 ml&dl enviroment (pytorch keras tensorflow)
# install git,make & clone repo
> sudo apt-get update && sudo apt-get install make git
> git clone https://github.com/wubinary/Ubuntu20_Auto_ML_DL_Environ.git
> cd Ubuntu20_Auto_ML_DL_Environ

# change shell
> make change_shell PASSWD=[passwd]
[reboot]

# install nvidia-driver
> cd Ubuntu20_Auto_ML_DL_Environ
> make nvidia_driver PASSWD=[passwd]
[reboot]

# check if nvidia-smi works well
> nvidia-smi

# install remains
> cd Ubuntu20_Auto_ML_DL_Environ
> make full PASSWD=[passwd]  

### finished, nice ball :) ###

Light Install (still some problem)

  • bag tools
  • zsh
  • vim (ycm)
  • user skel copy
  • nvidia-driver & cuda
  • system python3.8 ml&dl enviroment (pytorch keras tensorflow)
  • anaconda python3.7 ml&dl enviroment (pytorch keras tensorflow)
# install git,make & clone repo
> sudo apt-get update && sudo apt-get install make git
> git clone https://github.com/wubinary/Ubuntu20_Auto_ML_DL_Environ.git
> cd Ubuntu20_Auto_ML_DL_Environ

# install nvidia-driver
> make nvidia_driver PASSWD=[passwd]
[reboot]

# check if nvidia-smi works well
> nvidia-smi

# install remains
> make light PASSWD=[passwd]  

### finished, nice ball :) ###

Features 😍 ⭐ πŸ₯³ ⭐ 😁

ZSH Plugins

VIM (YCM)

python3 & c/c++ prompt word

c/c++: [ESC] auto grammar test

Bag tools

- tools
    - tmux 
    - htop
    - curl
    - net-tools
    - docker.io
    - gcc/g++
    - apache2
    - openssh
- firewall
    - allow OpenSSH & Apache2
    - start ufw firewall

Nvidia & Cuda

  • nvidia-driver 440
  • cuda 10.2
  • system python3.8 & anaconda python3.7

System python3.8 packages installed

->See Installed packages

Anaconda python3.7 packages installed

->See Installed packages


Additional auto install scripts πŸ₯± πŸŽ‰

Disk quota


Problem shooting 😨 😭

1. powerline font on windows 8.10 not support perfect

[download dejavu font] install DejaVuSans.ttf or DejaVuSansMono.ttf

2. powerline font on ubuntu18&20 not support perfect

Install the powerline font: https://github.com/powerline/fonts change font to "Ubuntu Mono derivative Powerline Regular"

3. install cuda: NO_PUBLICKEY F60F4B3D7FA2AF80

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key F60F4B3D7FA2AF80

4. vim mode can't past clipboard

=> [shift] + right mouse click = paste

5. where is my python3

  1. system python3.8
  2. anaconda python3.7 if activated

6. where is my pip & pip3

  1. pip3 : system
  2. pip : anaconda

7. old version (before 2020/01/24) SSH connect so slow

bug: motd get ip-address to slow

sudo vim /etc/update-motd.d/myMotd comment line 22 (IP Address ...), which cause long time