-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
107 lines (90 loc) · 2.69 KB
/
Copy pathmakefile
File metadata and controls
107 lines (90 loc) · 2.69 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# =================
# install
# =================
install:
sudo apt update
sudo apt install -y \
gcc \
g++ \
curl \
wget \
cloc \
clang \
clang-format \
python3 \
python3-pip \
black \
isort
vscode:
sudo apt update
sudo apt install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg
sudo apt install apt-transport-https
sudo apt update
sudo apt install code
dive:
wget https://github.com/wagoodman/dive/releases/download/v0.9.2/dive_0.9.2_linux_amd64.deb
sudo apt install ./dive_0.9.2_linux_amd64.deb
rm dive_0.9.2_linux_amd64.deb
qt5:
sudo apt install -y qtbase5-dev qttools5-dev-tools qt5-default qtcreator
bash-it:
cp -rf .bash_it/ ~/
cd ~/.bash_it && echo "y" | ./install.sh
sed -i "s/export BASH_IT_THEME='bobby'/export BASH_IT_THEME='easy'/" ~/.bashrc
google-drive:
sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt update
sudo apt install -y google-drive-ocamlfuse
docker:
ifeq ($(shell docker --version 2>/dev/null),)
sudo apt update
sudo apt install -y docker.io
endif
ifneq ($(shell getent group docker| cut -f 4 --delim=":"),$(shell whoami))
sudo gpasswd -a $(shell whoami) docker
endif
ifeq ($(shell ls -al /var/run/docker.sock 2>/dev/null | cut -d ' ' -f 4 | grep -c 'docker' | wc -l),0)
sudo chgrp docker /var/run/docker.sock
endif
sudo systemctl restart docker
@echo "環境構築を完了するために再起動してください"
git-setting:
git config --global user.name "taka0628"
git config --global user.email "taka2interface@gmail.com"
git config --global core.editor 'code --wait'
# =================
# network setting
# =================
network-change:
ifneq ($(shell find /etc/apt/ -name "sources.list" -type f),)
ifeq ($(shell ls /etc/apt/ | grep -c sources.list.old),0)
sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
endif
endif
./net.sh
network-reset:
ifneq ($(shell find /etc/apt/ -name "sources.list.old" -type f),)
sudo cat /etc/apt/sources.list.old > etc/apt/sources.list
endif
time-fix:
timedatectl set-local-rtc 1
swapDelete:
sudo swapoff /swapfile
swapon -s
sudo sed -i "s@/swapfile@# /swapfile@" /etc/fstab
sudo rm -f /swapfile
swapCreate:
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon --show
free -h
ssh-background-color:
bash set-ssh-background.sh
test:
cd ~/.bash_it && pwd