blob: 1c7b566005bb01c4654ee9a6eb41ed024f4b4afc [file] [log] [blame]
Carmelo Casconec5569c22018-04-18 10:09:15 +09001#!/usr/bin/env bash
2
Carmelo Casconec5569c22018-04-18 10:09:15 +09003set -xe
4
Carmelo Casconeada7b5b2019-04-23 13:50:03 -07005# 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
8echo "gdm3 shared/default-x-display-manager select lightdm" | debconf-set-selections
9echo "lightdm shared/default-x-display-manager select lightdm" | debconf-set-selections
Carmelo Casconeea2c1102018-08-21 18:32:58 -070010
Carmelo Casconeada7b5b2019-04-23 13:50:03 -070011# Install ubuntu desktop from tasksel
cmo4ab984b2019-06-14 16:06:12 +080012apt-get install -y --no-install-recommends tasksel
13DEBIAN_FRONTEND=noninteractive tasksel install ubuntu-desktop
Carmelo Casconeada7b5b2019-04-23 13:50:03 -070014# Remove gnome, install unity
cmo4ab984b2019-06-14 16:06:12 +080015apt-get remove -y gdm3 ubuntu-desktop
Carmelo Casconeada7b5b2019-04-23 13:50:03 -070016DEBIAN_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 Casconec5569c22018-04-18 10:09:15 +090022
Carmelo Casconeada7b5b2019-04-23 13:50:03 -070023# FIXME: app menu is empty in unity
Carmelo Casconec5569c22018-04-18 10:09:15 +090024
Carmelo Casconeada7b5b2019-04-23 13:50:03 -070025snap install intellij-idea-community --classic
26# TODO: install plugins, P4 plugin and Python CE
Carmelo Casconec5569c22018-04-18 10:09:15 +090027
Carmelo Casconeada7b5b2019-04-23 13:50:03 -070028DEBIAN_FRONTEND=noninteractive apt-get -y install wireshark
29echo "wireshark-common wireshark-common/install-setuid boolean true" | debconf-set-selections
cmo4ab984b2019-06-14 16:06:12 +080030DEBIAN_FRONTEND=noninteractive dpkg-reconfigure wireshark-common