-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-fresh-linux-ubuntu.sh
More file actions
executable file
·164 lines (138 loc) · 7.86 KB
/
install-fresh-linux-ubuntu.sh
File metadata and controls
executable file
·164 lines (138 loc) · 7.86 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
#!/bin/sh
# ## Installation
# * Install Anaconda: https://www.anaconda.com/download
# * Install ReMarkable: https://remarkableapp.github.io/linux/download.html
#
# ## CC Google cloud setup
# Follow https://github.com/connectedcars/infrastructure/wiki/Google-Cloud-setup
#
# ## HP Printer setup, install dependencies
# Check if the HP printer has been setup correctly. Run `hp-check -r` and install the missing dependencies if needed.
#
# ## US keyboard and compose key
# In Ubuntu MATE, you can customise what key is the compose key by opening “Keyboard”, clicking “Layouts”, then “Options…”
# and checking a box under “Position of compose key”. I checked “Right Alt”, meaning my “AltGr” key is now the compose
# key. See: https://help.ubuntu.com/community/GtkComposeTable
#
# In vanilla ubuntu (gnome shell) the tool to install is gnome-tweaks and read:
# https://help.ubuntu.com/stable/ubuntu-help/tips-specialchars.html.en
# * Open the Activities overview and start typing Tweaks.
# * Click Tweaks to open the application.
# * Click the Keyboard & Mouse tab.
# * Click Disabled next to the Compose Key setting.
# * Turn the switch on in the dialog and pick the keyboard shortcut you want to use.
#
# * æ =` Shift-RightAlt ae`
# * ø = `Shift-RightAlt o/`
# * å = `Shift-RightAlt aa`
# Installation on workstation:
# * unetbootin
# * Setup anaconda enviroment
# * Setup printers
# * Setup rsnapshot (bohr)
# * Setup autofs to enable auto mount NFS on /net (bohr). Modify: /etc/auto.master
# * Setup fixed IPs in /etc/hosts with local network names
# Find out what programs that have manually been installed on a system (usufull when clean-installing at upgrade):
# comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)
# Standard tools needed for install
sudo apt install -y autofs fonts-powerline fonts-roboto vim meld keepassxc gimp evince
sudo apt install -y baobab htop btop vlc redshift-gtk guake gkrellm nmap recordmydesktop
sudo apt install -y iptraf-ng sshfs bmon nethogs gparted build-essential fdupes flake8 git
sudo apt install -y texlive-latex-extra texlive-latex-recommended texlive-lang-european
sudo apt install -y ubuntu-restricted-extras
sudo apt install -y nfs-common pylint curl eog fonts-hack fonts-hack-ttf
sudo apt install -y cmake exuberant-ctags ack grep
#sudo apt install -y pep8 pyflakes3
sudo apt install -y isort tilix cloudsql-proxy smartmontools pwgen
sudo apt install -y flameshot solaar duf xournalpp
sudo apt install -y ripgrep ncftp
sudo apt install -y fonts-noto-color-emoj # Used for emoticons in console, for weather curl appi
# Using tillix as a quake alternative - https://gnunn1.github.io/tilix-web/manual/quake/
# When you register the hot key, simply bind it to the following command: `tilix --quake`
# When Tilix is run with the --quake switch, it will check if a quake style window is already running and if so simply toggle the window’s visibility. If no quake style window has been created, then Tilix will create one and display it.
# Configuring this hot key for GNOME is quite simple, simply open the Keyboard settings and configure a hot key as per the example in the screenshot below:
# sudo apt install -y gnome-shell-extension-tilix-shortcut gnome-shell-extension-tilix-dropdown
# Mate i3 setup
# sudo apt install i3 diodon
# Gnome shell setup
# sudo apt-get install chrome-gnome-shell gnome-shell-extensions gnome-shell-extension-weather\
# gnome-shell-extension-system-monitor gnome-shell-extension-multi-monitors gnome-shell-extension-caffeine\
# gnome-tweaks gnome-shell-extension-impatience gnome-shell-extension-no-annoyance
# Install https://extensions.gnome.org/extension/28/gtile/ using firefox - tiling like fancyzones for windows, powertoys
# Local MySQL Database for testing
# $ sudo apt install mysql-server
# $ sudo mysql_secure_installation # This sets the password
# $ sudo mysql
# mysql> CREATE USER 'admin'@'localhost' IDENTIFIED BY '';
# mysql> GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;
# Install keybase
curl --remote-name https://prerelease.keybase.io/keybase_amd64.deb
sudo apt install ./keybase_amd65.deb
run_keybase
# Avoid annoying ubuntu ads or news when using apt
sudo pro config set apt_news=false
# VS code and SQL operations
sudo snap install code --classic
sudo snap install slack --classic
sudo snap install kubectl --classic
sudo snap install datagrip --classic
sudo snap install node --classic --edge # Needed for jupyter
# Install the Google cloud sdk
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
sudo apt-get update && sudo apt-get install google-cloud-sdk
#########################################
# I3 - Use mate with an i3 window manager
# https://mattgreer.dev/blog/mate-and-i3/
# Use the dconf-editor.
# * Change org > mate > desktop > session > required-components. Change windowmanager from marco to i3.
# * Change org > mate > desktop > session and in required-component-list, delete filemanager
#########################################
# dconf dump /org/mate/desktop/session/ > settings-mate-use-i3-as-wm.dconf
# dconf load /org/mate/desktop/session/ < settings-mate-use-i3-as-wm.dconf
# ln -s ~/code/dotfiles/i3.config ~/.config/i3/config
# Tilix settings
# dconf dump /com/gexperts/Tilix/ > settings-tilix.dconf # Save
dconf load /com/gexperts/Tilix/ < settings-tilix.dconf # Load
# Guake settings
# dconf dump /apps/guake/ > settings-guake.dconf # Save
dconf load /apps/guake/ < settings-guake.dconf # Load
# Make clock settings (24-hour settings, week numbers etc)
# dconf dump /com/canonical/indicator/datetime/ > settings-indicator-datetime.dconf
dconf load /com/canonical/indicator/datetime/ < settings-indicator-datetime.dconf
# Make clock settings (24-hour settings, week numbers etc). After Mate 20.10
# dconf dump /org/ayatana/indicator/datetime/ > settings-indicator-datetime-ayatana.dconf
dconf load /org/ayatana/indicator/datetime/ < settings-indicator-datetime-ayatana.dconf
# Set up the background image
# dconf write /org/mate/desktop/background/picture-filename "'/home/tjansson/code/dotfiles/background-traffic-in-denmark.png'"
# dconf dump /org/mate/desktop/background/ > settings-mate-desktop-background.dconf
dconf load /org/mate/desktop/background/ < settings-mate-desktop-background.dconf
# Make Gnome Shell start a interactive screenshot tool and not the annoying automatic save to home default
# dconf dump /org/gnome/settings-daemon/plugins/media-keys/ > settings-gnome-screenshot.dconf
dconf load /org/gnome/settings-daemon/plugins/media-keys/ < settings-gnome-screenshot.dconf
# Extra media
# sudo apt install gimp-ufraw acidrip calibre darktablehandbrake mediainfo
# Extra tools
# sudo apt install spshotredshift-gtk filezilla x2goclient
# Yubikey inside a VirtualBox
# https://bjgill.net/2018/02/05/usb-mapping/
# Thinkpad power management
# sudo add-apt-repository ppa:linrunner/tlp
# sudo apt-get update
# sudo apt-get install tlp tlp-rdw tp-smapi-dkms acpi-call-dkms smartmontools
# Download DBeaver for SLQ work, or SQL operations for MSSQL. Prefering datagrip
# DBEAVER not rendering text correctly See, https://github.com/dbeaver/dbeaver/issues/3980. As a workaround use the following in the Mate launcher shorcut:
# ```
# env GTK_IM_MODULE=ibus /usr/share/dbeaver/dbeaver -vmargs -Duser.timezone=UTC"
# ```
# sudo add-apt-repository ppa:serge-rider/dbeaver-ce
# sudo add-apt-repository ppa:jonathonf/vim-daily # Latests vim versions
# sudo apt-get update
# sudo apt install dbeaver-ce
# Extra docker
# sudo apt install spshotredshift-gtk filezilla x2goclient
# Setup dockers
# sudo gpasswd -a $USER docker
# newgrp docker
# sudo systemctl start docker
# sudo systemctl enable docker