Skip to content

Commit

Permalink
🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 26, 2024
1 parent ba39504 commit 37286b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build_raspOVOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ sed -i 's/^#\(disable_splash\)=.*/\1=1/' /boot/firmware/config.txt

echo "Creating default OVOS XDG paths..."
mkdir -p /home/$USER/.config/mycroft
mkdir -p /home/$USER/.local/share/OpenVoiceOS
mkdir -p /home/$USER/.local/share/mycroft
mkdir -p /home/$USER/.cache/mycroft/
mkdir -p /home/$USER/.cache/ovos_gui/
Expand All @@ -98,8 +99,8 @@ cp -v /mounted-github-repo/.bashrc /home/$USER/.bashrc
cp -v /mounted-github-repo/.bash_aliases /home/$USER/.bash_aliases
cp -v /mounted-github-repo/.cli_login.sh /home/$USER/.cli_login.sh

echo "Creating user mycroft.conf..."
cp -v /mounted-github-repo/mycroft.conf /home/$USER/.config/mycroft/mycroft.conf
echo "Creating system level mycroft.conf..."
cp -v /mounted-github-repo/mycroft.conf /etc/mycroft/mycroft.conf

echo "Downloading constraints.txt..."
URL="https://github.com/OpenVoiceOS/ovos-releases/raw/refs/heads/main/constraints-alpha.txt"
Expand Down Expand Up @@ -206,7 +207,7 @@ ln -s /etc/systemd/system/i2csound.service /etc/systemd/system/multi-user.target

echo "Ensuring permissions for $USER user..."
# Replace 1000:1000 with the correct UID:GID if needed
chown -R $USER:$USER /home/$USER
chown -R 1000:1000 /home/$USER

# Enable lingering for the user
echo "Enabling lingering for $USER user ..."
Expand Down
5 changes: 5 additions & 0 deletions mycroft.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
"path": "/ramdisk/mycroft",
"max_bytes": 1500000,
"backup_count": 1
},
"PHAL": {
"admin": {
"ovos-PHAL-plugin-system": {"enabled": true}
}
}
}

0 comments on commit 37286b3

Please sign in to comment.