-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup_all.sh
executable file
·92 lines (72 loc) · 3.47 KB
/
setup_all.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/bin/bash
scripts=$(cd "$(dirname $0)"; pwd)
dotfiles="$scripts"
libpkgs="clang-4.0"
devpkgs="build-essential clang cmake git llvm python-dev python-flake8 python3-dev npm python-pip python3-pip"
devenvs="rxvt-unicode-256color tmux xsel tree ncdu glances vlc openssh-client openssh-server"
texpkgs="dvipsk-ja gv latexmk pstoedit texlive-full texlive-fonts-extra texlive-fonts-recommended texlive-lang-cjk xdvik-ja"
curl -sL install-node.now.sh/lts | bash
sudo apt -y update; sudo apt -y upgrade; sudo apt -y dist-upgrade
sudo apt install -y $libpkgs
sudo apt install -y $devpkgs
sudo apt install -y $devenvs
sudo apt install -y $texpkgs
sudo apt install -y inkscape
# -- General settings -------------------------------------------------------
$dotfiles/scripts/nocaps.sh
# -- Terminator -------------------------------------------------------
sudo apt install -y terminator
# -- Vim -------------------------------------------------------
sudo apt-add-repository -y ppa:jonathonf/vim
sudo apt -y update
sudo apt install -y vim-gnome && sudo apt -y remove vim-tiny
# -- git settings -------------------------------------------------------
git config --global user.name "AtsukiYokota"
git config --global user.email "[email protected]"
git config --global core.editor 'vim -c "set fenc=utf-8"'
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
# -- VS Code -------------------------------------------------------
cd ~/Downloads
sudo apt install codecurl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt install -y apt-transport-https
sudo apt update
sudo apt install -y code
cd $dotfiles
# -- Compilers -------------------------------------------------
sudo add-apt-repository -y ppa:jonathonf/gcc-7.udo
sudo apt update
sudo apt install -y gcc-7 g++-7
# -- GoogleChrome -------------------------------------------------
cd ~/Downloads
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i ./google-chrome*.deb
sudo apt-get -fy install
cd $dotfiles
# -- kazam -------------------------------------------------
sudo add-apt-repository -y ppa:kazam-team/unstable-series
sudo apt update
sudo apt install -y python3-cairo python3-xlib kazam
# -- Albert -------------------------------------------------
sudo add-apt-repository -y ppa:nilarimogard/webupd8
sudo apt update
sudo apt install -y albert
# -- themes -----------------------------------------------
$dotfiles/scripts/prepare_themes.sh
# -- PlantUML -----------------------------------------------
sudo apt install -y default-jdk graphviz fonts-takao fonts-ipafont fonts-ipaexfont
cd $dotfiles
mkdir utils
wget 'https://downloads.sourceforge.net/project/plantuml/plantuml.jar?r=http%3A%2F%2Fplantuml.com%2Fstarting&ts=1538667739&use_mirror=jaist' -O $dotfiles/utils/plantuml.jar
# -- install -----------------------------------------------
$dotfiles/scripts/install.sh
# -- NTP(For Kyutech cntl NTP server) -----------------------------------------------
$dotfiles/scripts/setup_kyutech_cntl_ntp.sh
# -- upgrade pip ----------------------------------------
python -m pip install --upgrade pip
python3 -m pip install --upgrade pip
# -- ROS ---------------------------------------------------
$dotfiles/scripts/setup_ros.sh