Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorials of qmsk-e2 #31

Closed
shopp1984 opened this issue May 31, 2018 · 8 comments
Closed

Tutorials of qmsk-e2 #31

shopp1984 opened this issue May 31, 2018 · 8 comments

Comments

@shopp1984
Copy link

Hi, everyone
i am a new guys for linux, i am a E2 Operator, because qmsk-e2 so i am learning RaspberryPi, can any guys share more detail guide for our new guys? like RaspberryPi video in youtube, i am trying to install qmsk/e2 according Development-Guide, but when i run "go get ./cmd/tally" and "go get ./cmd/server" alway show "connection timeout, and i don't know how to start qmsk-e2,i try to run "$GOPATH/bin/tally --discovery-interface=eth0" ,but it failed, or any kindly guys can tell me the easy way to install qmsk-e2

@SpComb
Copy link
Member

SpComb commented May 31, 2018

Hi,

The Development Guide is most relevant for development work, where you want to modify the source code and run your modified version of the code.

For normal usage, it should be easier to use the pre-built releases: https://github.com/qmsk/e2/releases

Unfortunately there's no guide written for these yet, but for a RaspberryPi running raspian, the steps should be something along the lines of (written out blindly, without testing them):

curl https://github.com/qmsk/e2/releases/download/v0.5.0-alpha.1/qmsk-e2_0.5.0-alpha.1_linux-arm.tar.gz | sudo tar -C /opt -xzv
sudo ln -s qmsk-e2_0.5.0-alpha.1_linux-arm /opt/qmsk-e2
sudo cp /opt/qmsk-e2/etc/systemd/system/qmsk-e2-tally.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl start qmsk-e2-tally
sudo systemctl enable qmsk-e2-tally

This will run the tally service in the background, and also start it at boot.

The example service runs a GPIO-only tally... to edit the options:

sudoedit /etc/systemd/system/qmsk-e2-tally.service
sudo systemctl daemon-reload
sudo systemctl restart qmsk-e2-tally

If the start/restart fails, then debugging is:

sudo systemctl status qmsk-e2-tally
sudo journalctl -u qmsk-e2-tally

If you find a working variant of these instructions, then feel free to either create a GitHub wiki page, or leave a comment on what worked.

@shopp1984
Copy link
Author

thank you so much for you reply

@shopp1984
Copy link
Author

@SpComb
i downlaod the file from github.
i use these command :

sudo tar -C /opt -xzvf qmsk-e2_0.5.0-alpha.1_linux-arm.tar.gz
sudo ln -s qmsk-e2_0.5.0-alpha.1_linux-arm /opt/qmsk-e2
sudo cp /opt/qmsk-e2/etc/systemd/system/qmsk-e2-tally.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl start qmsk-e2-tally
sudo systemctl enable qmsk-e2-tally

but it failed

pi@raspberrypi:~ $ sudo systemctl start qmsk-e2-tally
Job for qmsk-e2-tally.service failed because the control process exited with error code.
See "systemctl status qmsk-e2-tally.service" and "journalctl -xe" for details.
pi@raspberrypi:~ $ sudo systemctl enable qmsk-e2-tally
pi@raspberrypi:~ $ sudo systemctl start qmsk-e2-tally
Job for qmsk-e2-tally.service failed because the control process exited with error code.
See "systemctl status qmsk-e2-tally.service" and "journalctl -xe" for details.
pi@raspberrypi:~ $ sudo systemctl status qmsk-e2-tally
● qmsk-e2-tally.service - github.com/qmsk/e2 tally
Loaded: loaded (/etc/systemd/system/qmsk-e2-tally.service; enabled; vendor pr
Active: failed (Result: exit-code) since Thu 2018-05-31 07:28:25 UTC; 43s ago
Process: 17878 ExecStartPre=/opt/qmsk-e2/bin/gpio-export.sh 23 24 21 20 16 12

May 31 07:28:24 raspberrypi systemd[1]: Failed to start github.com/qmsk/e2 tally
May 31 07:28:24 raspberrypi systemd[1]: qmsk-e2-tally.service: Unit entered fail
May 31 07:28:24 raspberrypi systemd[1]: qmsk-e2-tally.service: Failed with resul
May 31 07:28:25 raspberrypi systemd[1]: qmsk-e2-tally.service: Service hold-off
May 31 07:28:25 raspberrypi systemd[1]: Stopped github.com/qmsk/e2 tally.
May 31 07:28:25 raspberrypi systemd[1]: qmsk-e2-tally.service: Start request rep
May 31 07:28:25 raspberrypi systemd[1]: Failed to start github.com/qmsk/e2 tally
May 31 07:28:25 raspberrypi systemd[1]: qmsk-e2-tally.service: Unit entered fail
May 31 07:28:25 raspberrypi systemd[1]: qmsk-e2-tally.service: Failed with resul
lines 1-14/14 (END)...skipping...

Uploading 2 2018-05-31-074713_651x984_scrot 018-05-31-074713_651x984_scrot.png…

could you help me agian? i know you are busy, but i don't know how to settle this problem

My System :
go version go1.10.2 linux/arm
Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux

@shopp1984
Copy link
Author

i rebuild the raspberryPI OS, and install Go lang V1.7.1 according Development Guide,but still have same problem

pi@raspberrypi:~ $ sudo systemctl start qmsk-e2-tally
Job for qmsk-e2-tally.service failed because the control process exited with error code.
See "systemctl status qmsk-e2-tally.service" and "journalctl -xe" for details.

@SpComb
Copy link
Member

SpComb commented May 31, 2018

It looks like the output that you copy-pasted got truncated somehow, it's only showing the start of the lines... you need to copy-paste from a wider terminal. The screenshot also didn't get uploaded.

Based on the limited output that you did show, it looks like the ExecStartPre=/opt/qmsk-e2/bin/gpio-export.sh might have failed, but I can't tell for sure because the rest of the line is missing... can you try running sudo /opt/qmsk-e2/bin/gpio-export.sh 23 24 21 20 16 12 manually?


Oh, I think I see what the problem is... the example qmsk-e2-tally.service unit includes User=e2-tally, but that user does not exist... you can try removing that line to let the service run as root instead:

sudo sed -i '/User=/d' /etc/systemd/system/qmsk-e2-tally.service
sudo systemctl daemon-reload

@SpComb SpComb added the bug label May 31, 2018
@shopp1984
Copy link
Author

@SpComb it is success, thank you for your help
Below is i used commands:

sudo tar -C /opt -xzvf qmsk-e2_0.5.0-alpha.1_linux-arm.tar.gz
sudo ln -s qmsk-e2_0.5.0-alpha.1_linux-arm /opt/qmsk-e2
sudo cp /opt/qmsk-e2/etc/systemd/system/qmsk-e2-tally.service /etc/systemd/system
sudo sed -i '/User=/d' /etc/systemd/system/qmsk-e2-tally.service
sudo systemctl daemon-reload
sudo systemctl start qmsk-e2-tally
sudo systemctl enable qmsk-e2-tally

/opt/qmsk-e2/bin/tally --http-listen=:8001 --http-static=/opt/qmsk-e2/static

i can see the qmsk-e2 status in web, it mean GPIO output also is ok?
how to know if my input is on the preview by GPIO tally light, the light will be blinked?

you seem set pin 23~p24 for status, pin 21 20 16 12 26 19 13 6 for tally light,it is only 8 pins, for 8 lights , right?

when we start RaspberryPi then i need to type "sudo systemctl start qmsk-e2-tally" to start it ,right?

sorry , i asked so many question one time, because my show is soon, i want to settle it as soon as possible.

Thanks so much

@SpComb
Copy link
Member

SpComb commented Jun 1, 2018 via email

@SpComb
Copy link
Member

SpComb commented Aug 3, 2018

Fixed in #38: the .deb packages create the qmsk-e2 user for the qmsk-e2-tally service.

@SpComb SpComb closed this as completed Aug 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants