qmsk / e2

E2 Client, Tally output
Mozilla Public License 2.0
26 stars 7 forks source link

Tutorials of qmsk-e2 #31

Closed shopp1984 closed 6 years ago

shopp1984 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

thank you so much for you reply

shopp1984 commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

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
shopp1984 commented 6 years ago

@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 commented 6 years ago

i can see the qmsk-e2 status in web, it mean GPIO output also is ok?

The gpio outputs should match the program state in the web UI.

how to know if my input is on the preview by GPIO tally light, the light will be blinked?

The GPIO oupts don't indicate preview state, only program state.

Only the status pins blink, those meanings are documented in the wiki: https://github.com/qmsk/e2/wiki/Tally#gpio

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?

Yes. You can add more --gpio-tally-pin=... arguments for more tally outputs, refer to the rpi pinout. Remember to also add them to the gpio-export.sh call.

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

If you systemctl enable, then it should start by itself at boot.

On Fri, 1 Jun 2018, 19.34 shopp1984, notifications@github.com wrote:

@SpComb https://github.com/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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/qmsk/e2/issues/31#issuecomment-393936896, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxHJSHdMre-0MnjTopyfwVTG5ayZTFsks5t4W0jgaJpZM4UUcet .

SpComb commented 6 years ago

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