-
Notifications
You must be signed in to change notification settings - Fork 0
/
init-chromebook-2.sh
executable file
·84 lines (60 loc) · 1.55 KB
/
init-chromebook-2.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
#!/usr/bin/env bash
source ~/.photon/ui/_main.sh
source ~/.photon/init/_utils.sh
source ~/.photon/.functions
LOG=~/init.$(timestamp).log
START_TIME="$(date -u +%s)"
PAUSE=true
cd ~/.photon
clear -x
title "photon PLATFORM initialization"
sudo pwd
if $(ask_truefalse "Pause at each step?")
then
PAUSE=true
else
PAUSE=false
fi
collect_system_metrics
write_installed_packages "start"
# set up symlinks for config files
source ~/.photon/home.sh
#set environment
source ~/.bashrc
title "disable .profile"
mv_bak ~/.profile
source ~/.photon/init/update-system.sh
collect_system_metrics
write_installed_packages "update"
source ~/.photon/init/general.sh
source ~/.photon/init/pyenv.sh
source ~/.photon/init/python.sh
source ~/.photon/init/git.sh
git clone [email protected]:phiarchitect/.private $HOME/.private
source ~/.photon/init/vim.sh
# source ~/.photon/init/chrome.sh
# source ~/.photon/init/node.sh
# source ~/.photon/init/graphics.sh
# source ~/.photon/init/media.sh
title "final update & upgrade"
if $PAUSE; then pause_enter; fi
SECTION_TIME="$(date -u +%s)"
sudo apt update -y && sudo apt upgrade -y
sub "final upgrade complete"
elapsed_time $SECTION_TIME | tee -a $LOG
if $PAUSE; then pause_enter; fi
echo
sub "INIT complete"
elapsed_time $START_TIME | tee -a $LOG
collect_system_metrics
write_installed_packages "end"
# Compare installed package lists
echo "Comparing installed package lists:"
diff installed_packages_start.txt installed_packages_end.txt
echo install manually:
echo - pandoc.sh
echo - latex.sh
echo - epub.sh
echo
echo $fgRed reboot system
echo