forked from lamhoangtung/remokaggle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_common.sh
47 lines (40 loc) · 1.33 KB
/
install_common.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Better bash env
cd ~
wget https://raw.githubusercontent.com/lamhoangtung/kaggle-kernel-setup/master/.bashrc
mv .bashrc.1 .bashrc
source .bashrc
# htop, tmux, nano ...
apt-get -y install nano htop tmux cmake libncurses5-dev libncursesw5-dev git tree zip expect
# Upgrade tensorboardX to avoid some small bugs
pip install ipdb trains scikit-learn==0.20.3 tensorflow-gpu==1.14.0
pip install --upgrade imgaug tensorboardX
conda install -c eumetsat expect
# nvtop
conda deactivate
git clone https://github.com/Syllo/nvtop.git
mkdir -p nvtop/build && cd nvtop/build
cmake ..
# If it errors with "Could NOT find NVML (missing: NVML_INCLUDE_DIRS)"
# try the following command instead, otherwise skip to the build with make.
cmake .. -DNVML_RETRIEVE_HEADER_ONLINE=True
make
make install # You may need sufficient permission for that (root)
# drive-cli
cd ~
wget https://github.com/gdrive-org/gdrive/releases/download/2.1.0/gdrive-linux-x64
mv gdrive-linux-x64 gdrive
chmod +x gdrive
install gdrive /usr/local/bin/gdrive
gdrive about
# rclone for data backup
curl https://rclone.org/install.sh | bash
rclone config
trains-init
# Setting up swap
# dd if=/dev/zero of=/swapfile-additional bs=1M count=32768
# mkswap /swapfile-additional
# cdmod 600 /swapfile-additional
# echo "/swapfile-additional swap swap 0 0" >> /etc/fstab
# mount -a
# swapon -a
# free -m