Carmelo Cascone | c5569c2 | 2018-04-18 10:09:15 +0900 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
Carmelo Cascone | c5569c2 | 2018-04-18 10:09:15 +0900 | [diff] [blame] | 3 | set -xe |
| 4 | |
Carmelo Cascone | ada7b5b | 2019-04-23 13:50:03 -0700 | [diff] [blame] | 5 | # Desktop and other tutorial tools. |
| 6 | # VirtualBox doesn't like Gnome, use Unity: |
| 7 | # https://askubuntu.com/questions/1035410/ubuntu-18-04-gnome-hangs-on-virtualbox-with-3d-acceleration-enabled |
| 8 | echo "gdm3 shared/default-x-display-manager select lightdm" | debconf-set-selections |
| 9 | echo "lightdm shared/default-x-display-manager select lightdm" | debconf-set-selections |
Carmelo Cascone | ea2c110 | 2018-08-21 18:32:58 -0700 | [diff] [blame] | 10 | |
Carmelo Cascone | ada7b5b | 2019-04-23 13:50:03 -0700 | [diff] [blame] | 11 | # Install ubuntu desktop from tasksel |
cmo | 4ab984b | 2019-06-14 16:06:12 +0800 | [diff] [blame] | 12 | apt-get install -y --no-install-recommends tasksel |
| 13 | DEBIAN_FRONTEND=noninteractive tasksel install ubuntu-desktop |
Carmelo Cascone | ada7b5b | 2019-04-23 13:50:03 -0700 | [diff] [blame] | 14 | # Remove gnome, install unity |
cmo | 4ab984b | 2019-06-14 16:06:12 +0800 | [diff] [blame] | 15 | apt-get remove -y gdm3 ubuntu-desktop |
Carmelo Cascone | ada7b5b | 2019-04-23 13:50:03 -0700 | [diff] [blame] | 16 | DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ |
| 17 | ubuntu-unity-desktop lightdm \ |
| 18 | gnome-panel \ |
| 19 | gnome-settings-daemon \ |
| 20 | metacity \ |
| 21 | nautilus |
Carmelo Cascone | c5569c2 | 2018-04-18 10:09:15 +0900 | [diff] [blame] | 22 | |
Carmelo Cascone | ada7b5b | 2019-04-23 13:50:03 -0700 | [diff] [blame] | 23 | # FIXME: app menu is empty in unity |
Carmelo Cascone | c5569c2 | 2018-04-18 10:09:15 +0900 | [diff] [blame] | 24 | |
Carmelo Cascone | ada7b5b | 2019-04-23 13:50:03 -0700 | [diff] [blame] | 25 | snap install intellij-idea-community --classic |
| 26 | # TODO: install plugins, P4 plugin and Python CE |
Carmelo Cascone | c5569c2 | 2018-04-18 10:09:15 +0900 | [diff] [blame] | 27 | |
Carmelo Cascone | ada7b5b | 2019-04-23 13:50:03 -0700 | [diff] [blame] | 28 | DEBIAN_FRONTEND=noninteractive apt-get -y install wireshark |
| 29 | echo "wireshark-common wireshark-common/install-setuid boolean true" | debconf-set-selections |
cmo | 4ab984b | 2019-06-14 16:06:12 +0800 | [diff] [blame] | 30 | DEBIAN_FRONTEND=noninteractive dpkg-reconfigure wireshark-common |