|
|
@@ -108,6 +108,27 @@ try_install \ |
|
|
|
ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime |
|
|
|
dpkg-reconfigure -f noninteractive tzdata |
|
|
|
|
|
|
|
# Put some default desktop shortcuts in place |
|
|
|
DESKTOP=/etc/skel/Desktop |
|
|
|
mkdir -p $DESKTOP |
|
|
|
cp /usr/share/applications/exo-terminal-emulator.desktop $DESKTOP || true |
|
|
|
cp /usr/share/applications/exo-web-browser.desktop $DESKTOP || true |
|
|
|
chmod +x $DESKTOP/* |
|
|
|
|
|
|
|
# Custom background image (which was already copied in by customize.sh) |
|
|
|
XML=/etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml |
|
|
|
sed -i -s -e 's/xubuntu-wallpaper.png/nilmbuntu.png/g' $XML/xfce4-desktop.xml |
|
|
|
|
|
|
|
# Configure Firefox with our default homepage |
|
|
|
HOMEPAGE="http://www.wattsworth.net/" |
|
|
|
cat >/etc/firefox/syspref.js <<EOF |
|
|
|
pref("browser.startup.homepage", "${HOMEPAGE}"); |
|
|
|
pref("extensions.ubufox@ubuntu.com.custom_homepage", "${HOMEPAGE}"); |
|
|
|
pref("browser.startup.homepage_override.mstone", "ignore"); |
|
|
|
EOF |
|
|
|
|
|
|
|
# NilmDB setup below... |
|
|
|
|
|
|
|
# # Create nilmdb user to run the database |
|
|
|
# adduser --system --group --shell /bin/bash --disabled-password nilmdb |
|
|
|
# cp -rv /etc/skel/.??* /home/nilmdb |
|
|
@@ -284,88 +305,3 @@ dpkg-reconfigure -f noninteractive tzdata |
|
|
|
# kill $SERVERPID |
|
|
|
# wait |
|
|
|
# trap "" 0 |
|
|
|
|
|
|
|
# Put some default desktop shortcuts in place |
|
|
|
DESKTOP=/etc/skel/Desktop |
|
|
|
mkdir -p $DESKTOP |
|
|
|
cp /usr/share/applications/exo-terminal-emulator.desktop $DESKTOP || true |
|
|
|
cp /usr/share/applications/exo-web-browser.desktop $DESKTOP || true |
|
|
|
chmod +x $DESKTOP/* |
|
|
|
|
|
|
|
# # XFCE / theme customizations |
|
|
|
# if [ -d /usr/share/themes/Clearlooks ] ; then |
|
|
|
# cat > /usr/share/gconf/defaults/88_nilmdbuntu-gtk-theme <<"EOF" |
|
|
|
# /desktop/gnome/interface/gtk_theme "Clearlooks" |
|
|
|
# EOF |
|
|
|
# fi |
|
|
|
# if [ -d /usr/share/icons/elementary-xfce ] ; then |
|
|
|
# cat > /usr/share/gconf/defaults/88_nilmdbuntu-icon-theme <<"EOF" |
|
|
|
# /desktop/gnome/interface/icon_theme "elementary-xfce" |
|
|
|
# EOF |
|
|
|
# fi |
|
|
|
# update-gconf-defaults |
|
|
|
|
|
|
|
|
|
|
|
# XML=/etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml |
|
|
|
# BG=/usr/share/xfce4/backdrops |
|
|
|
# mkdir -p $XML |
|
|
|
# cat >$XML/xfce4-desktop.xml <<"EOF" |
|
|
|
# <?xml version="1.0" encoding="UTF-8"?> |
|
|
|
|
|
|
|
# <channel name="xfce4-desktop" version="1.0"> |
|
|
|
# <property name="desktop-icons" type="empty"> |
|
|
|
# <property name="style" type="int" value="2"/> |
|
|
|
# <property name="file-icons" type="empty"> |
|
|
|
# <property name="show-home" type="bool" value="true"/> |
|
|
|
# <property name="show-filesystem" type="bool" value="true"/> |
|
|
|
# <property name="show-removable" type="bool" value="true"/> |
|
|
|
# <property name="show-trash" type="bool" value="true"/> |
|
|
|
# </property> |
|
|
|
# </property> |
|
|
|
# <property name="backdrop" type="empty"> |
|
|
|
# <property name="screen0" type="empty"> |
|
|
|
# <property name="monitor0" type="empty"> |
|
|
|
# <property name="image-path" type="string" |
|
|
|
# value="/usr/share/xfce4/backdrops/nilmdbuntu.png"/> |
|
|
|
# <property name="image-show" type="bool" value="true"/> |
|
|
|
# <property name="image-style" type="int" value="4"/> |
|
|
|
# <property name="color-style" type="int" value="0"/> |
|
|
|
# <property name="color1" type="array"> |
|
|
|
# <value type="uint" value="0"/> |
|
|
|
# <value type="uint" value="0"/> |
|
|
|
# <value type="uint" value="0"/> |
|
|
|
# <value type="uint" value="65535"/> |
|
|
|
# </property> |
|
|
|
# </property> |
|
|
|
# <property name="monitor1" type="empty"> |
|
|
|
# <property name="image-path" type="string" |
|
|
|
# value="/usr/share/xfce4/backdrops/nilmdbuntu.png"/> |
|
|
|
# <property name="image-show" type="bool" value="true"/> |
|
|
|
# <property name="image-style" type="int" value="4"/> |
|
|
|
# <property name="color-style" type="int" value="0"/> |
|
|
|
# <property name="color1" type="array"> |
|
|
|
# <value type="uint" value="0"/> |
|
|
|
# <value type="uint" value="0"/> |
|
|
|
# <value type="uint" value="0"/> |
|
|
|
# <value type="uint" value="65535"/> |
|
|
|
# </property> |
|
|
|
# </property> |
|
|
|
# </property> |
|
|
|
# </property> |
|
|
|
# </channel> |
|
|
|
# EOF |
|
|
|
# sed -i -s -e 's/Greybird/Default/g' $XML/xfwm4.xml || true |
|
|
|
# sed -i -s -e 's/Greybird/Clearlooks/g' $XML/xsettings.xml || true |
|
|
|
# sed -i -s -e \ |
|
|
|
# 's/elementary-xfce-dark(er)?/elementary-xfce/g' $XML/xsettings.xml || true |
|
|
|
|
|
|
|
# Firefox defaults |
|
|
|
cat >/etc/firefox/syspref.js <<"EOF" |
|
|
|
pref("browser.startup.homepage", "http://wattsworth.net/"); |
|
|
|
EOF |
|
|
|
#cat >/etc/xul-ext/homepage.properties <<"EOF" |
|
|
|
#browser.startup.homepage=http://nilmdb.com/ |
|
|
|
#EOF |
|
|
|
#cat >/etc/xul-ext/ubufox.js <<"EOF" |
|
|
|
#pref("browser.startup.homepage", "file:/etc/xul-ext/homepage.properties"); |
|
|
|
#EOF |