|
|
@@ -104,42 +104,15 @@ 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) |
|
|
|
# Custom background image |
|
|
|
XML=/etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml |
|
|
|
BG=/usr/share/xfce4/backdrops/nilmbuntu.png |
|
|
|
apt -y install xmlstarlet |
|
|
|
xmlstarlet ed -L -u "//property[@name='image-path']/@value" -v "$BG" $XML |
|
|
|
xmlstarlet ed -L -u "//property[@name='image-style']/@value" -v "3" $XML |
|
|
|
|
|
|
|
# Get Chrome |
|
|
|
wget -O chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb |
|
|
|
dpkg -i chrome.deb |
|
|
|
|
|
|
|
# Make Chrome a little nicer: |
|
|
|
# - No first run |
|
|
|
mkdir -p /etc/skel/.config/google-chrome/Default |
|
|
|
touch '/etc/skel/.config/google-chrome/First Run' |
|
|
|
# - Set up some default bookmarks on the bookmark bar |
|
|
|
cat >/etc/skel/.config/google-chrome/Default/Bookmarks <<"EOF" |
|
|
|
{ "version": 1, "roots": { |
|
|
|
"other": { "id": "2", "name": "Other bookmarks", "type": "folder", |
|
|
|
"children": [ ] }, |
|
|
|
"synced": { "id": "3", "name": "Mobile bookmarks", "type": "folder", |
|
|
|
"children": [ ] }, |
|
|
|
"bookmark_bar": { "id": "1", "name": "Bookmarks bar", "type": "folder", |
|
|
|
"children": [ { |
|
|
|
"id": "6", "type": "url", |
|
|
|
"name": "Wattsworth", |
|
|
|
"url": "https://www.wattsworth.net/" |
|
|
|
}, { |
|
|
|
"id": "7", "type": "url", |
|
|
|
"name": "Standalone NILM", |
|
|
|
"type": "url", |
|
|
|
"url": "http://nilm.primary/" |
|
|
|
} ] } |
|
|
|
} } |
|
|
|
EOF |
|
|
|
|
|
|
|
# Make Firefox nicer |
|
|
|
install -D -m 0644 files/syspref.js /etc/hosts.nilm |
|
|
|
|
|
|
|
# Create NILM user. This should happen after anything that we put in |
|
|
|
# /etc/skel, since files get copied from there. Note that this user |
|
|
|