<commit_before>#/bin/sh

# perform some basic setup for fresh debian_chroot
# intended for run with debian-setup profile

check_errors () {
  local status="$?"
  local msg="$@"
  if [ "$status" != "0" ]; then
    echo "ERROR: operation finished with error code $status"
    [ ! -z "$msg" ] && echo "$msg"
    exit "$status"
  fi
}

apt-get update
check_errors

apt-get install dialog -y
check_errors

apt-get install locales -y
check_errors

dpkg-reconfigure locales
check_errors

apt-get install apt-utils -y
check_errors

dpkg-reconfigure dialog
check_errors

dpkg-reconfigure apt-utils
check_errors

dpkg-reconfigure tzdata
check_errors

# additional packages for dbus, x11, mesa, pulse integration and package management gui (synaptic) with minimal x11 stack
apt-get install -y net-tools mc libpulse0 mesa-utils lsb-release synaptic
check_errors

apt-get dist-upgrade -y
check_errors<commit_msg>sandboxer: debian config examples updated<commit_after>#/bin/sh

# perform some basic setup for fresh debian_chroot
# intended for run with debian-setup profile

check_errors () {
  local status="$?"
  local msg="$@"
  if [ "$status" != "0" ]; then
    echo "ERROR: operation finished with error code $status"
    [ ! -z "$msg" ] && echo "$msg"
    exit "$status"
  fi
}

apt-get update
check_errors

apt-get install dialog -y
check_errors

apt-get install locales -y
check_errors

dpkg-reconfigure locales
check_errors

apt-get install apt-utils -y
check_errors

dpkg-reconfigure dialog
check_errors

dpkg-reconfigure apt-utils
check_errors

dpkg-reconfigure tzdata
check_errors

# additional packages for dbus, x11, mesa, pulse integration and package management gui (synaptic) with minimal x11 stack
apt-get install -y net-tools mc libpulse0 mesa-utils lsb-release wget synaptic
check_errors

apt-get dist-upgrade -y
check_errors
{'fraction_non_alphanumeric': 0.0868377935554342, 'fraction_numerical': 0.006553795740032769, 'mean_word_length': 4.356725146198831, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1187832', 'n_tokens_mistral': 604, 'n_tokens_neox': 579, 'n_words': 202}