Compare commits
5 Commits
054e91006e
...
1c82f6ad0a
Author | SHA1 | Date | |
---|---|---|---|
1c82f6ad0a | |||
bbce49bb1c | |||
2fe3f2f092 | |||
442c0efa10 | |||
da37396f65 |
|
@ -41,6 +41,8 @@ perl -n -i \
|
||||||
-e "print;" \
|
-e "print;" \
|
||||||
${ISO}/boot/grub/{grub,loopback}.cfg
|
${ISO}/boot/grub/{grub,loopback}.cfg
|
||||||
|
|
||||||
|
sudo install -D -m 0644 files/fallback_dns.conf ${FS}/etc/systemd/resolved.conf.d/fallback_dns.conf
|
||||||
|
|
||||||
if ! [ "$1" == "skip" ] ; then
|
if ! [ "$1" == "skip" ] ; then
|
||||||
|
|
||||||
# Run the customize-inner.sh script inside the chroot
|
# Run the customize-inner.sh script inside the chroot
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
export USERNAME="nilm"
|
export USERNAME="nilm"
|
||||||
export USERFULLNAME="NILM User"
|
export USERFULLNAME="NILM User"
|
||||||
export HOST="nilmbuntu"
|
export HOST="nilmbuntu-live"
|
||||||
export BUILD_SYSTEM="Ubuntu"
|
export BUILD_SYSTEM="Ubuntu"
|
||||||
export FLAVOUR="NILMbuntu"
|
export FLAVOUR="NILMbuntu"
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ set -x
|
||||||
|
|
||||||
# Move stuff to the right places
|
# Move stuff to the right places
|
||||||
install -D -m 0644 files/nilmbuntu.png /usr/share/xfce4/backdrops/nilmbuntu.png
|
install -D -m 0644 files/nilmbuntu.png /usr/share/xfce4/backdrops/nilmbuntu.png
|
||||||
install -D -m 0644 files/fallback_dns.conf /etc/systemd/resolved.conf.d/fallback_dns.conf
|
|
||||||
install -D -m 0644 files/casper.conf /etc/casper.conf
|
install -D -m 0644 files/casper.conf /etc/casper.conf
|
||||||
install -D -m 0644 files/hosts.nilm /etc/hosts.nilm
|
install -D -m 0644 files/hosts.nilm /etc/hosts.nilm
|
||||||
|
|
||||||
|
@ -46,6 +45,7 @@ apt -y install postfix
|
||||||
# Required packages
|
# Required packages
|
||||||
apt -y install \
|
apt -y install \
|
||||||
python3 \
|
python3 \
|
||||||
|
python3-venv \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
git \
|
git \
|
||||||
build-essential \
|
build-essential \
|
||||||
|
@ -112,7 +112,7 @@ xmlstarlet ed -L -u "//property[@name='image-path']/@value" -v "$BG" $XML
|
||||||
xmlstarlet ed -L -u "//property[@name='image-style']/@value" -v "3" $XML
|
xmlstarlet ed -L -u "//property[@name='image-style']/@value" -v "3" $XML
|
||||||
|
|
||||||
# Make Firefox nicer
|
# Make Firefox nicer
|
||||||
install -D -m 0644 files/syspref.js /etc/hosts.nilm
|
install -D -m 0644 files/syspref.js /etc/firefox/syspref.js
|
||||||
|
|
||||||
# Create NILM user. This should happen after anything that we put in
|
# Create NILM user. This should happen after anything that we put in
|
||||||
# /etc/skel, since files get copied from there. Note that this user
|
# /etc/skel, since files get copied from there. Note that this user
|
||||||
|
|
|
@ -53,3 +53,6 @@ d-i user-setup/allow-password-weak boolean true
|
||||||
d-i user-setup/force-encrypt-home boolean false
|
d-i user-setup/force-encrypt-home boolean false
|
||||||
d-i user-setup/encrypt-home boolean false
|
d-i user-setup/encrypt-home boolean false
|
||||||
d-i passwd/auto-login boolean true
|
d-i passwd/auto-login boolean true
|
||||||
|
|
||||||
|
d-i netcfg/get_hostname seen true
|
||||||
|
d-i netcfg/get_hostname string nilmbuntu
|
||||||
|
|
5
run.sh
5
run.sh
|
@ -47,13 +47,14 @@ set -x
|
||||||
|
|
||||||
cfg=""
|
cfg=""
|
||||||
|
|
||||||
|
cfg+=" -nodefaults"
|
||||||
cfg+=" -drive file=${DISK},media=disk,format=raw,if=virtio"
|
cfg+=" -drive file=${DISK},media=disk,format=raw,if=virtio"
|
||||||
cfg+=" -enable-kvm"
|
cfg+=" -enable-kvm"
|
||||||
cfg+=" -m 2048"
|
cfg+=" -m 2048"
|
||||||
cfg+=" -usb"
|
cfg+=" -usb"
|
||||||
cfg+=" -device usb-tablet"
|
cfg+=" -device usb-tablet"
|
||||||
|
cfg+=" -nic user"
|
||||||
cfg+=" -vga vmware"
|
cfg+=" -vga virtio"
|
||||||
#cfg+=" -vnc :0"
|
#cfg+=" -vnc :0"
|
||||||
|
|
||||||
case $boot in
|
case $boot in
|
||||||
|
|
Loading…
Reference in New Issue
Block a user