-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.sh
More file actions
78 lines (62 loc) · 2.01 KB
/
Copy pathcore.sh
File metadata and controls
78 lines (62 loc) · 2.01 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
# #!/bin/bash
echo "Running core.sh"
echo "Initial update..."
sudo apt update
sudo apt upgrade -y
echo "Installing core packages..."
packages=(
"bash-completion"
"neovim"
"tmux"
"tree"
# "colordiff"
"git"
"python3-pip"
# Debian family:
"software-properties-common"
"ppa-purge"
"htop"
"jnettop"
"iotop"
"sshfs"
"openvpn"
"curl"
"httpie"
"cowsay"
"fortune"
"fortunes"
"fortunes-debian-hints"
"fortunes-ubuntu-server"
)
selected_packages=""
for p in "${packages[@]}"; do
selected_packages+=$p" "
done
sudo apt install -y $selected_packages
echo "Installing pip packages..."
sudo pip3 install --upgrade pip
sudo pip3 install --upgrade ipython virtualenv
# Configure
echo "Backing up home directory's original configs..."
sudo cp -r /home/`whoami`{,.bak} # Warning, this should be used in fresh install with minimal home directory
echo "Configuring python..."
ipython profile create
cp /tmp/firstboot/linux-config/ipython_config.py ~/.ipython/profile_default/
cat /tmp/firstboot/linux-config/ipython_config.py | tee -a ~/.ipython/profile_default/ipython_config.py
cp /tmp/firstboot/linux-config/.py_autovenv ~/
echo "Configuring bash/shell..."
cp /tmp/firstboot/linux-config/.bash* ~/
sudo cp /tmp/firstboot/foxsay/rayting.cow /usr/share/cowsay/cows/
sudo rm /usr/share/games/fortunes/{men-women,zippy,ascii-art,ethnic}*
# bash /tmp/firstboot/fortune/build.sh # Create and install custom fortunes
sudo cp /tmp/firstboot/fortune/hugs* /usr/share/games/fortunes/ # Workaround for fortune's build.sh
# echo "Configuring vim..."
# vim config/themeing is disabled by default
# cp /tmp/firstboot/linux-config/.vimrc ~/
# mkdir -p ~/.vim/colors
# cp /tmp/firstboot/molokai/molokai.vim ~/.vim/colors
echo "Copying over other dotfiles..."
cp /tmp/firstboot/linux-config/.gitconfig ~/
cp /tmp/firstboot/linux-config/.tmux.conf ~/
# No longer using case insensitive bash completion
# cat /tmp/firstboot/linux-config/inputrc | sudo -E tee -a /etc/inputrc > /dev/null