-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sh
executable file
·81 lines (58 loc) · 1.45 KB
/
init.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
#!/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
df . | tee -a $LOG
# set up symlinks for config files
source ~/.photon/home.sh
#set environment
source ~/.bashrc
title "disable .profile"
mv_bak ~/.profile
title "change hostname"
host_name=$(ask_value 'set system name' 'photon')
sudo hostnamectl set-hostname $host_name
source ~/.photon/init/gsettings.sh
source ~/.photon/init/remove-default-apps.sh
source ~/.photon/init/update-system.sh
source ~/.photon/init/general.sh
source ~/.photon/init/git.sh
source ~/.photon/init/python.sh
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
df . | tee -a $LOG
echo install manually:
echo - pandoc.sh
echo - latex.sh
echo - thunderbird.sh
echo - epub.sh
echo
echo $fgRed reboot system
echo