-
Notifications
You must be signed in to change notification settings - Fork 0
/
init-chromebook.sh
executable file
·83 lines (56 loc) · 1002 Bytes
/
init-chromebook.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
#!/usr/bin/env bash
source ~/.photon/ui/_main.sh
source ~/.photon/.functions
LOGMD=~/init.log.md
title() {
clear -x
ui_banner "$1"
echo
}
subtitle() {
echo
h1 "$1"
echo
}
cd ~/.photon
title "photon PLATFORM • chromebook initialization"
sudo pwd
./home.sh
source ~/.bashrc
title "update system packages"
echo
h1 "apt update"
echo
sudo apt update -y
echo
h1 "apt upgrade"
echo
sudo apt upgrade -y
echo
h1 "apt autoremove"
echo
sudo apt autoremove -y
init/general.sh
init/git.sh
cd ~
rm -rf .photon
git clone --recurse-submodules [email protected]:photon-platform/.photon
cd .photon
init/vim.sh
init/python.sh
title "update & upgrade"
sudo apt update -y && sudo apt upgrade -y
subtitle "git"
git --version
# git config --list
subtitle "vim"
vim --version
subtitle "python"
python3 --version
#####################################
title "disable .profile"
mv_bak ~/.profile
title "change hostname"
sudo hostnamectl set-hostname 'photon'
echo $fgRed reboot system
echo