@@ -2,17 +2,13 @@ | |||||
Problems with 3ce08771a631f9e373f65995fd2114a817326e98: | Problems with 3ce08771a631f9e373f65995fd2114a817326e98: | ||||
- Ubiquity chooser doesn't have nilmdb background | - Ubiquity chooser doesn't have nilmdb background | ||||
- Theme is still "Greybird" not "Clearlooks" | |||||
- Icons are still "elementary Xfce dark" not "elementary Xfce" | |||||
- Change xfdesktop background color to black | |||||
- Set default firefox homepage to http://nilmdb.com/ | |||||
- /home/nilmdb should have /etc/skel stuff | |||||
- capture.sh should say skipping | |||||
- ubiquity still shows release notes? | |||||
- release notes need to exist | |||||
* Theme is still "Greybird" not "Clearlooks" | |||||
* Icons are still "elementary Xfce dark" not "elementary Xfce" | |||||
* Change xfdesktop background color to black | |||||
* Set default firefox homepage to http://nilmdb.com/ | |||||
* /home/nilmdb should have /etc/skel stuff | |||||
* capture.sh should say skipping | |||||
* ubiquity still shows release notes? | |||||
* release notes need to exist | |||||
- in live CD, ssh_host_dsa_key is ba636e7440.. | - in live CD, ssh_host_dsa_key is ba636e7440.. | ||||
- quiet/splash removal failed --- preseed late_command didn't work | - quiet/splash removal failed --- preseed late_command didn't work | ||||
Nice to fix maybe: | |||||
- ubuquity splash | |||||
- maybe skip the "try" screen and go straight to desktop? |
@@ -93,6 +93,8 @@ dpkg-reconfigure -f noninteractive tzdata | |||||
# Create nilmdb user to run the database | # Create nilmdb user to run the database | ||||
adduser --system --group --shell /bin/bash --disabled-password nilmdb | adduser --system --group --shell /bin/bash --disabled-password nilmdb | ||||
cp -rv /etc/skel/.??* /home/nilmdb | |||||
chown -R nilmdb:nilmdb /home/nilmdb | |||||
# Create WSGI scripts | # Create WSGI scripts | ||||
cat > /home/nilmdb/nilmdb.wsgi <<"EOF" | cat > /home/nilmdb/nilmdb.wsgi <<"EOF" | ||||
@@ -134,9 +136,11 @@ cat > /home/nilmdb/capture.sh <<"EOF" | |||||
# Don't run capture if we're running off a live CD | # Don't run capture if we're running off a live CD | ||||
if grep -q boot=casper /proc/cmdline ; then | if grep -q boot=casper /proc/cmdline ; then | ||||
echo "Skipping capture, because this is a live CD." | |||||
exit 0 | exit 0 | ||||
fi | fi | ||||
echo "Starting capture in background..." | |||||
nilm-pipewatch --daemon --lock "/tmp/nilmdb-capture.lock" --timeout 30 \ | nilm-pipewatch --daemon --lock "/tmp/nilmdb-capture.lock" --timeout 30 \ | ||||
"ethstream -a 192.168.1.209 -n 6 -r 8000" \ | "ethstream -a 192.168.1.209 -n 6 -r 8000" \ | ||||
"nilm-insert -m 10 -r 8000 --live /data/raw" | "nilm-insert -m 10 -r 8000 --live /data/raw" | ||||
@@ -291,3 +295,8 @@ cat >$XML <<"EOF" | |||||
</property> | </property> | ||||
</channel> | </channel> | ||||
EOF | EOF | ||||
# Firefox defaults | |||||
cat >/etc/firefox/syspref.js <<"EOF" | |||||
pref("browser.startup.homepage", "http://nilmdb.com/"); | |||||
EOF |
@@ -12,7 +12,6 @@ sed -i -s -e \ | |||||
# The .disk/info file is important -- it's used by ubiquity to extract | # The .disk/info file is important -- it's used by ubiquity to extract | ||||
# out the distro name in dialogs, and I think casper might use it too | # out the distro name in dialogs, and I think casper might use it too | ||||
echo "NilmDBuntu $VERSION by Jim Paris" > ${ISO}/.disk/info | echo "NilmDBuntu $VERSION by Jim Paris" > ${ISO}/.disk/info | ||||
rm -f ${ISO}/.disk/release_notes_url | |||||
# Set up preseed file | # Set up preseed file | ||||
cp ${ISO}/preseed/xubuntu.seed ${ISO}/preseed/nilmdbuntu.seed | cp ${ISO}/preseed/xubuntu.seed ${ISO}/preseed/nilmdbuntu.seed | ||||