-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
69 lines (51 loc) · 2.53 KB
/
setup.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
#!/bin/bash
sudo apt install vim-gtk3 -y
sudo apt install curl -y
sudo apt install keepassx -y
sudo apt install fzf -y
sudo apt install ripgrep -y
# allow shared folder access to host
sudo adduser $USER vboxsf
# python
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt install virtualenv -y
sudo apt install ipython3 -y
# import keys - need copying from airgapped storage to home dir
gpg --import /media/jim/GPG_SUB_KEYS/secret.gpg
gpg --import /media/jim/GPG_SUB_KEYS/public.gpg
# set the keys trust level
echo -e "5\ny\n" | gpg --command-fd 0 --expert --edit-key D5557B332830404939C27D578CEDDB5272262D4C trust
# create .ssh dir
#mkdir ~/.ssh
#chmod 700 ~/.ssh
# transfer config files
#cp /home/jim/ubuntu_setup/config_files/known_hosts /home/jim/.ssh/known_hosts
cp /home/jim/ubuntu_setup/config_files/gpg-agent.conf /home/jim/.gnupg
cp /home/jim/ubuntu_setup/config_files/sshcontrol /home/jim/.gnupg
cp /home/jim/ubuntu_setup/config_files/gtk.css /home/jim/.config/gtk-3.0
# transfer dot files
cp /home/jim/ubuntu_setup/dot_files/.bash_profile /home/jim/
cp /home/jim/ubuntu_setup/dot_files/.bashrc /home/jim/
cp /home/jim/ubuntu_setup/dot_files/.gitconfig /home/jim/
cp /home/jim/ubuntu_setup/dot_files/.gitignore_global /home/jim/
cp /home/jim/ubuntu_setup/dot_files/.inputrc /home/jim/
cp /home/jim/ubuntu_setup/dot_files/.profile /home/jim/
cp /home/jim/ubuntu_setup/dot_files/.tmux.conf /home/jim/
cp /home/jim/ubuntu_setup/dot_files/.vimrc /home/jim/
cp /home/jim/ubuntu_setup/background.jpg /home/jim/Pictures/
# load dconf file containing reasigned keyboard shortcuts
dconf load / < /home/jim/ubuntu_setup/config_files/dconf_backup.txt
# dock settings
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 35
#gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']" # replace caps with ctrl
gsettings set org.gnome.desktop.session idle-delay 0 # set power saving to never
gsettings set org.gnome.desktop.background picture-uri file:///home/jim/Pictures/background.jpg
# gsettings get org.gnome.shell favorite-apps # list favourite apps
gsettings set org.gnome.shell favorite-apps "['firefox_firefox.desktop', 'org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', 'keepassx.desktop']" # edit app thumbnails
# copy repos script into home directory
cp /home/jim/ubuntu_setup/pull_repos.sh /home/jim/
# remove setup folder
sudo rm -rf /home/jim/ubuntu_setup/
reboot