Can not work out if mycroft is running

Hi all, I am learning Ubuntu because Mycroft is going to be the leader in everyday and work environments, so I want to jump on board now and learn along with Mycroft as the project grows, but I have run into some problems, and dew to my lack of understanding of Ubuntu I’m getting stuck while installing the program. I went to register Mycroft but I don’t think Mycroft is setup or running rightright.

user@user-deluxe:~$ cd mycroft-core
user@user-deluxe:~/mycroft-core$ ./mycroft.sh start
Mycroft service started
Mycroft skills started
Mycroft voice started
Mycroft cli–quiet started
user@user-deluxe:~/mycroft-core$screen -list
There are screens on:
3307.mycroft-cli–quiet (23/02/17 21:48:30) (Detached)
3293.mycroft-voice (23/02/17 21:48:29) (Detached)
3279.mycroft-skills (23/02/17 21:48:28) (Detached)
3265.mycroft-service (23/02/17 21:48:27) (Detached)
4 Sockets in /var/run/screen/S-mycroft-ai.
user@user-deluxe:~/mycroft-core$ 3293.mycroft-voice
3293.mycroft-voice: command not found
user@user-deluxe:~/mycroft-core$ workon mycroft
(mycroft) user@user-deluxe:~/mycroft-core$ source ~/.virtualenvs/mycroft/bin/activate
(mycroft) user@user-deluxe:~/mycroft-core$ PYTHONPATH=. python client/speech/main.py
python: can’t open file ‘client/speech/main.py’: [Errno 2] No such file or directory
(mycroft) user@user-deluxe:~/mycroft-core$ Mycroft, register my device

Could someone please tell me what i’m doing wrong.
Thanks.

so it looks like your mycroft is running, but you need to use the cli and not workon to interact with it using text.

You’ll also need to switch user to Mycroft to do that.

So, in terminal, try

sudo su
su mycroft
mycroft-cli-client 

You can also add --quiet to get a silent Mycroft response.

Let me know if that helps/ makes sense

1 Like

Thanks for your reply Karl,
I opened a new terminal and added your code but I got a error.

user@user-Deluxe:~$ sudo su
[sudo] password for user: 
root@user-Deluxe:/home/user# su mycroft
No passwd entry for user 'mycroft'

also tried in same terminal I started mycroft in.

user@user-Deluxe:~/mycroft-core$ sudo su
[sudo] password for user: 
root@user-Deluxe:/home/user/mycroft-core# su mycroft
No passwd entry for user 'mycroft'

How would I setup a passwd for mycroft?
Or have I done something wrong.

So, there isn’t a password for security reasons, but you can create one and log in normally with:
sudo passwd mycroft
That should do the trick and allow you to log in as that user.

1 Like

Thanks for your reply Aatchison,

How would I setup and create the passwd for the mycroft account?

user@user-Deluxe:~$ cd mycroft-core
user@user-Deluxe:~/mycroft-core$ ./mycroft.sh start
Mycroft service started
Mycroft skills started
Mycroft voice started
Mycroft cli--quiet started
user@user-Deluxe:~/mycroft-core$ screen -list
There are screens on:
	11984.mycroft-cli--quiet	(25/02/17 11:32:03)	(Detached)
	11969.mycroft-voice	(25/02/17 11:32:02)	(Detached)
	11955.mycroft-skills	(25/02/17 11:32:01)	(Detached)
	11940.mycroft-service	(25/02/17 11:32:00)	(Detached)
4 Sockets in /var/run/screen/S-user.
user@user-Deluxe:~/mycroft-core$  workon mycroft
(mycroft) user@user-Deluxe:~/mycroft-core$ sudo su
[sudo] password for user: 
root@user-Deluxe:/home/user/mycroft-core# sudo passwd mycroft
passwd: user 'mycroft' does not exist
root@user-Deluxe:/home/user/mycroft-core#

Sorry I have to ask, Linux is not my native OS yet so my understanding of ubuntu commands at the moment is limited.

Thanks for your time.

Sorry, I made a mistake. It looks like you did a git-clone and not an apt-install. You don’t need to worry about switching to the mycroft user as there isn’t one.

In the above line, after you type

screen -list

all you need to do is select which screen to mount. In your case, you want to interact with mycroft via the cli, so mount that screen

screen -r (whatever the name of cli is, in this case):

screen -r 11984.mycroft-cli--quiet

Let me know if that helps,

1 Like

Hi, I run the code and got this reply in the terminal,

Starting cli --quiet
2017-02-25 11:32:03,143 - mycroft.configuration - DEBUG - Configuration '/home/user/mycroft-core/mycroft/configuration/mycroft.conf' loaded
2017-02-25 11:32:03,143 - mycroft.configuration - DEBUG - Configuration '/etc/mycroft/mycroft.conf' not found
2017-02-25 11:32:03,144 - mycroft.configuration - DEBUG - Configuration '/home/user/.mycroft/mycroft.conf' not found
2017-02-25 11:32:03,393 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
2017-02-25 11:32:04,691 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "GET /v1/device//setting HTTP/1.1" 401 38
2017-02-25 11:32:04,695 - requests.packages.urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): api.mycroft.ai
2017-02-25 11:32:05,960 - requests.packages.urllib3.connectionpool - DEBUG - https://api.mycroft.ai:443 "GET /v1/auth/token HTTP/1.1" 401 38
2017-02-25 11:32:05,963 - mycroft.configuration - WARNING - Failed to fetch remote configuration: HTTPError(u'The supplied authentication is invalid',)
  Carnegie Mellon University, Copyright (c) 1999-2011, all rights reserved
  version: mimic-2.0.0-release Dec 2014 (http://cmuflite.org)
2017-02-25 11:32:06,003 - mycroft.messagebus.client.ws - INFO - Connected
Input (Ctrl+C to quit): 

I think I have a html error and it looks like i have to setup a configuration file.

I run a new terminal and got the read out below

user@user-Deluxe:~$ cd mycroft-core
user@user-Deluxe:~/mycroft-core$ ./mycroft.sh start
Mycroft service started
Mycroft skills started
Mycroft voice started
Mycroft cli--quiet started
user@user-Deluxe:~/mycroft-core$ screen -list
There are screens on:
	13038.mycroft-cli--quiet	(25/02/17 12:32:04)	(Detached)
	13024.mycroft-voice	(25/02/17 12:32:03)	(Detached)
	13010.mycroft-skills	(25/02/17 12:32:02)	(Detached)
	11984.mycroft-cli--quiet	(25/02/17 11:32:03)	(Attached)
	11969.mycroft-voice	(25/02/17 11:32:02)	(Detached)
	11955.mycroft-skills	(25/02/17 11:32:01)	(Detached)
	11940.mycroft-service	(25/02/17 11:32:00)	(Detached)
7 Sockets in /var/run/screen/S-user.
user@user-Deluxe:~/mycroft-core$ screen -r 11984.mycroft-cli--quiet
There is a screen on:
	11984.mycroft-cli--quiet	(25/02/17 11:32:03)	(Attached)
There is no screen to be resumed matching 11984.mycroft-cli--quiet.
user@user-Deluxe:~/mycroft-core$ 

Do I attach all the other screen the same way? e.g.

screen -r 11969.mycroft-voice     --quiet
screen -r 11955.mycroft-skills    --quiet
screen -r 11940.mycroft-service   --quiet

Thanks everyone for your help,I said “hey mycroft” and got a reply, so it must be running but my speakers are not very good and also could do with a better Mic.

Time for me to read up what to do next.

Edit: >> Your device is registered and ready to be used :slight_smile:

Thanks for all your help everyone :sunglasses:

Yeah, from the above, those messages are fine. Once you get to the CLI, (the Input screen from above)[quote=“SprinterOz, post:7, topic:1383”]
2017-02-25 11:32:06,003 - mycroft.messagebus.client.ws - INFO - Connected
Input (Ctrl+C to quit):
[/quote]
Just type in your prompts to Mycroft and it will respond as if you were speaking to it.

1 Like