-
Notifications
You must be signed in to change notification settings - Fork 0
/
configdeskmin.sh
executable file
·85 lines (79 loc) · 2.13 KB
/
configdeskmin.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
85
#!/bin/bash
#
# This script kicks off a minimal config of new Ubuntu installation
#
# Warning: this script will fail if auto-updates (on by default)
# are enabled.
#
# Run this as the your user - NOT root
#
# Kill auto updates:
# $ sudo systemctl disable apt-daily.service # disable running at boot
# $ sudo systemctl disable apt-daily.timer # disable running whenever the timer hits
#
# reboot
#
# Run it by typing this:
# $ wget https://goo.gl/vRKD2a
# make it executable
# run it!
#
#killdpkg()
#{
# sudo pkill dpkg
# echo "killed dpkg" >> $HOME/install.log
#}
applications()
{
# This installs the applications
sudo apt install -y ecryptfs-utils
sudo apt install -y git
sudo apt install -y gparted
sudo apt install -y nfs-common
sudo apt install -y pv
sudo apt install -y tmux
sudo apt install -y traceroute
sudo apt install -y tree
sudo apt install -y whois
sudo apt install -y xclip
echo "applications have been installed" >> $HOME/install.log
}
directories()
{
mkdir -p $HOME/git-files/bin
mkdir -p $HOME/git-files/dotfiles
echo "directories have been created" >> $HOME/install.log
}
clonerepos()
{
if [ -d $HOME/git-files/bin/ ]; then
mv dotfiles bin.old
fi
if [ -d $HOME/git-files/dotfiles/ ]; then
mv dotfiles dotfiles.old
fi
cd $HOME/git-files/
git clone https://github.com/ersanchez/bin.git
git clone https://github.com/ersanchez/dotfiles.git
echo "repositories have been cloned" >> $HOME/install.log
}
link()
{
ln -sb $HOME/git-files/dotfiles/.abcde $HOME/
ln -sb $HOME/git-files/dotfiles/.bash_logout $HOME/
ln -sb $HOME/git-files/dotfiles/.bash_profile $HOME/
ln -sb $HOME/git-files/dotfiles/.bashrc $HOME/
ln -sb $HOME/git-files/dotfiles/.bashrc_custo $HOME/
ln -sb $HOME/git-files/dotfiles/.gitconfig $HOME/
ln -sb $HOME/git-files/dotfiles/.gitignore_global $HOME/
ln -sb $HOME/git-files/dotfiles/.profile $HOME/
ln -sb $HOME/git-files/dotfiles/.tmux.conf $HOME/
ln -sb $HOME/git-files/dotfiles/.vim $HOME/
ln -sb $HOME/git-files/dotfiles/.vimrc $HOME/
echo "dotfiles have been linked" >> $HOME/install.log
}
#killdpkg &&\
applications &&\
directories &&\
clonerepos &&\
link