[OS] Mycroft-Image (Debian Jessie-based)

Post Reply
nold
Posts: 5
Joined: Mon May 26, 2014 5:56 pm
languages_spoken: english
ODROIDs: 2x odroid-u3
Contact:

[OS] Mycroft-Image (Debian Jessie-based)

Unread post by nold » Sun May 28, 2017 8:05 pm

I made a little Image using meveric's Debian Jessie and the open-source "Open Source Voice Assistant" Mycroft.
This basically turns your Odroid into an "Amazon Echo" aka "Alexa". For more informations, check out the Mycroft-Website and/or MycroftDocumentation.

Basically it's "ready-to-run", mycroft is started on bootup. But you will need to configure mycroft, so f.e. it knows your location & Date-Format. Also your USB-Soundcard/-Microphone might not work from scratch. See "Post-Install Configuration" for more.
Also setting the System-Time correctly is important, because it's essential for SSL-Handshakes - which will be needed by apt & mycroft.



Download: https://nold.in/files/Mycroft-U3-20170528.img.gz
Size-Compressed: 3,5G
Size-Uncompressed: 7,5G

Hardware Requirements:
  • SD/eMMC-Card >= 8GB
  • USB-Soundcard and/or Microphone/Speaker (for voice input/output)
General:
Hostname: mycroft-u3
SSH-Login:
  • Username: mycroft
  • Password: mycroft
mycroft is started using the systemd-services: mycroft-skills, mycroft-voice, mycroft-service
It has been installed using the git-Repository. This makes it easier for developers, since it's pretty easy to create your own Mycroft-Skills. You can find the git-clone under /home/mycroft/git/mycroft-core. The Skills are located under ~/.mycroft/skills & /opt/mycroft/skills.

Post-Install Configuration:
General:
  • Configure Timezone:

    Code: Select all

     $ sudo dpkg-reconfigure tzdata
  • If the system-time is correct: Set Hardware-Clock to System time:

    Code: Select all

     $ sudo hwclock -w 
  • Update System:

    Code: Select all

    $ sudo apt update && sudo apt dist-upgrade
Note: The correct time-settings are essential for mycroft & the system to work correctly.

Mycroft:
Update mycroft:

Code: Select all

$ cd /home/mycroft/git/mycroft-core
$ git pull
$ restart-mycroft.sh
If your having issues setting up your microphone, try this little script I've added:

Code: Select all

$ mycroft-audio-detect
Changes made to meveric's Debian-Image:
  • Hostname: mycroft-u3
  • User: mycroft / pass: mycroft
  • root login via ssh only via ssh-key
  • root password removed
  • /etc/systemd/system/mycroft-{voice,skills,service}.service
  • Recreates /home/mycroft/.mycroft on first-boot
  • /tmp is now tmpfs
[/list]

Software added: Custom Scripts:
/home/mycroft/bin/
  • restart-mycroft.sh - restarts all three mycroft-services
  • mycroft-audio-detect - prints out all possible audio devices
Known issues:
  • USB-Soundcard might not be detected when rebooting, only seems to work by power-cycling

User avatar
mad_ady
Posts: 5113
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1
Location: Bucharest, Romania
Contact:

Re: [OS] Mycroft-Image (Debian Jessie-based)

Unread post by mad_ady » Sun May 28, 2017 8:21 pm

Great news. I want to play with mycroft as well, but on C2. What cool tricks did you teach him/it? :)

nold
Posts: 5
Joined: Mon May 26, 2014 5:56 pm
languages_spoken: english
ODROIDs: 2x odroid-u3
Contact:

Re: [OS] Mycroft-Image (Debian Jessie-based)

Unread post by nold » Sun May 28, 2017 11:23 pm

I made a raspberry pi camera, E-Mail/IMAP (WIP) & "robot" skill. You can find them on github https://github.com/nold360. Also I had a skill to play radio somewhere...
But now I finally can continue to work on new skills, because it took me two days to make this Image work >.<'' (It's the first istro-Image I made & published).

Edit 1:
The worst thing is making it start using systemd... I used the Unit's from Arch AUR, but they didn't work from scratch. So it's still kinda hacky, but working pretty well.

User avatar
meveric
Posts: 9608
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go
Contact:

Re: [OS] Mycroft-Image (Debian Jessie-based)

Unread post by meveric » Mon May 29, 2017 5:31 am

very cool :)
Having this on ODROIDs is really nice.
Thanks for sharing.

If you need help porting it to other ODROIDs let me know.
ODROID X and X2 is just a matter of reinstalling a different Kernel, while C1 and XU3/XU4 is a little more work but can be done easily as well.

User avatar
mad_ady
Posts: 5113
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1
Location: Bucharest, Romania
Contact:

Re: [OS] Mycroft-Image (Debian Jessie-based)

Unread post by mad_ady » Thu Jul 20, 2017 9:43 pm

Forgot to post here for those following this thread - here's a guide to installing Mycroft on other Odroids on top of Ubuntu 16.04: viewtopic.php?f=52&t=27661

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 0 guests