<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
gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
gsettings set org.gnome.desktop.screensaver lock-enabled false
gsettings set org.gnome.desktop.session idle-delay uint32 0

gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action nothing
gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action nothing
gsettings set org.gnome.settings-daemon.plugins.power idle-dim-ac false
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-ac 0
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-battery 0

gsettings set com.ubuntu.update-manager check-dist-upgrades false

gsettings set com.canonical.indicator.power show-time true<commit_msg>fix broken gsettins command<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
gsettings set org.gnome.desktop.screensaver idle-activation-enabled false
gsettings set org.gnome.desktop.screensaver lock-enabled false
gsettings set org.gnome.desktop.session idle-delay 0

gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action nothing
gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action nothing
gsettings set org.gnome.settings-daemon.plugins.power idle-dim-ac false
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-ac 0
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-battery 0

gsettings set com.ubuntu.update-manager check-dist-upgrades false

gsettings set com.canonical.indicator.power show-time true
{'fraction_non_alphanumeric': 0.10823055625471936, 'fraction_numerical': 0.0025169896803423106, 'mean_word_length': 4.406802721088435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '3999158', 'n_tokens_mistral': 1426, 'n_tokens_neox': 1337, 'n_words': 347}