<commit_before># late_command.sh
# touch up the new Ubuntu system

# called from the Ubuntu installer, from this line in the preseed file:
# d-i preseed/late_command  string cd /tmp;apt-get install wget;wget http://shaz/late_command.sh; chmod u+x late_command.sh; chroot /target ./late_command.sh

set -xe
# NUSER=videoteam
NUSER=juser
# NUSER=carl

SHAZ=shaz.personnelware.com

## ssh greating: cpu, ubuntu ver, firewire guids
# add the cpu name/speed and ubuntu flavor to login greeting
PROFDIR=/etc/profile.d
if [ -d $PROFDIR ]; then
  echo grep -E \"\(name\|MHz\)\" /proc/cpuinfo > $PROFDIR/showcpu.sh 
  echo lsb_release -d -c > $PROFDIR/showrelease.sh 
  echo uname -a > $PROFDIR/showkernel.sh 
  echo cat /sys/devices/virtual/dmi/id/product_name > $PROFDIR/showproduct_name.sh 
  echo cat /sys/bus/firewire/devices/fw0/guid > $PROFDIR/show_fwguid.sh 
  echo "cd /sys/devices/virtual/dmi/id" > $PROFDIR/showproduct_name.sh 
  echo "echo \$(cat sys_vendor) \$(cat product_version) \$(cat product_name)" >> $PROFDIR/showproduct_name.sh 
  echo cd >> $PROFDIR/showproduct_name.sh 
fi

# # beep on firewire card add/remove
cd /etc/udev/rules.d
wget http://$SHAZ/lc/fw-beep.rules


## disable screensaver, blank screen on idle, blank screen on lid close

mkdir -p /etc/dconf/profile
cd /etc/dconf/profile
echo user > user
echo site >> user

mkdir -p /etc/dconf/db/site.d/
mkdir -p /etc/dconf/db/site.d/locks
cd /etc/dconf/db/site.d/

cat <<EOT >local.dconf
[org/gnome/desktop/screensaver]
idle-activation-enabled=false
lock-enabled false

[org/gnome/desktop/session]
idle-delay=0

[org/gnome/settings-daemon/plugins/power]
lid-close-ac-action='nothing'
lid-close-battery-action='nothing'
idle-dim-ac=false
sleep-display-ac=0
sleep-display-battery=0

[com/ubuntu/update-manager]
check-dist-upgrades=false

[com/canonical/indicator/power]
show-time=true

[com/canonical/indicator/datetime]
show-seconds=true

[org/gnome/desktop/interface]
clock-show-seconds=true
<commit_msg>fix syntax error in local.dconf<commit_after># late_command.sh
# touch up the new Ubuntu system

# called from the Ubuntu installer, from this line in the preseed file:
# d-i preseed/late_command  string cd /tmp;apt-get install wget;wget http://shaz/late_command.sh; chmod u+x late_command.sh; chroot /target ./late_command.sh

set -xe
# NUSER=videoteam
NUSER=juser
# NUSER=carl

SHAZ=shaz.personnelware.com

## ssh greating: cpu, ubuntu ver, firewire guids
# add the cpu name/speed and ubuntu flavor to login greeting
PROFDIR=/etc/profile.d
if [ -d $PROFDIR ]; then
  echo grep -E \"\(name\|MHz\)\" /proc/cpuinfo > $PROFDIR/showcpu.sh 
  echo lsb_release -d -c > $PROFDIR/showrelease.sh 
  echo uname -a > $PROFDIR/showkernel.sh 
  echo cat /sys/devices/virtual/dmi/id/product_name > $PROFDIR/showproduct_name.sh 
  echo cat /sys/bus/firewire/devices/fw0/guid > $PROFDIR/show_fwguid.sh 
  echo "cd /sys/devices/virtual/dmi/id" > $PROFDIR/showproduct_name.sh 
  echo "echo \$(cat sys_vendor) \$(cat product_version) \$(cat product_name)" >> $PROFDIR/showproduct_name.sh 
  echo cd >> $PROFDIR/showproduct_name.sh 
fi

# # beep on firewire card add/remove
cd /etc/udev/rules.d
wget http://$SHAZ/lc/fw-beep.rules


## disable screensaver, blank screen on idle, blank screen on lid close

mkdir -p /etc/dconf/profile
cd /etc/dconf/profile
echo user > user
echo site >> user

mkdir -p /etc/dconf/db/site.d/
mkdir -p /etc/dconf/db/site.d/locks
cd /etc/dconf/db/site.d/

cat <<EOT >local.dconf
[org/gnome/desktop/screensaver]
idle-activation-enabled=false
lock-enabled=false

[org/gnome/desktop/session]
idle-delay=0

[org/gnome/settings-daemon/plugins/power]
lid-close-ac-action='nothing'
lid-close-battery-action='nothing'
idle-dim-ac=false
sleep-display-ac=0
sleep-display-battery=0

[com/ubuntu/update-manager]
check-dist-upgrades=false

[com/canonical/indicator/power]
show-time=true

[com/canonical/indicator/datetime]
show-seconds=true

[org/gnome/desktop/interface]
clock-show-seconds=true

{'fraction_non_alphanumeric': 0.13363590519415028, 'fraction_numerical': 0.002017145738779627, 'mean_word_length': 4.18562091503268, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 31, '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': '7210024', 'n_tokens_mistral': 1565, 'n_tokens_neox': 1484, 'n_words': 331}