Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Need help installing ustreamer

    Scheduled Pinned Locked Moved
    General Discussion
    8
    135
    10.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • luckyflyerundefined
      luckyflyer
      last edited by

      @gtj0 said,
      @luckyflyer Are you sure the ustreamer@.service file is located in /etc/systemd/system and that it's named exactly that?
      I noticed that in

      ls -al /etc/systemd/system
      

      that in line 29 it is

      ustreamer@.service:
      

      With a colon, instead of

      ustreamer@.service
      

      Is this a problem?

      1 Reply Last reply Reply Quote 0
      • luckyflyerundefined
        luckyflyer
        last edited by luckyflyer

        They say great minds think alike................ maybe, I don't know lol.

        1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User @luckyflyer
          last edited by

          @luckyflyer said in Need help installing ustreamer:

          cat command, was wondering if that would be a good way to create

          well, you can use cat and heredoc to create files like so

          cat << EOF > /tmp/yourfilehere
          These contents will be written to the file.
                  This line is indented.
          EOF
          

          but redirects and sudo gets messy so you'd need something like

          cat << EOF | sudo tee /tmp/yourfilehere
          These contents will be written to the file.
                  This line is indented.
          EOF
          

          but you'll have to deal with escaping on the command line etc. i to use it from time to time, but its not always the best option.

          1 Reply Last reply Reply Quote 0
          • luckyflyerundefined
            luckyflyer
            last edited by

            How would I get rid of the :

            A Former User? 1 Reply Last reply Reply Quote 0
            • A Former User?
              A Former User @luckyflyer
              last edited by A Former User

              @luckyflyer said in Need help installing ustreamer:

              How would I get rid of the :

              sudo mv renames it

              sudo mv /etc/systemd/system/ustreamer@.service: /etc/systemd/system/ustreamer@.service
              sudo chmod +x /etc/systemd/system/ustreamer@.service
              

              edit thats better.

              1 Reply Last reply Reply Quote 0
              • luckyflyerundefined
                luckyflyer
                last edited by

                tried,

                pi@duet3:~ $ sudo mv /etc/systemd/system/ustreamer@.service: /etc/systemd/system/ustreamer@.service sudo chmod +x /etc/systemd/system/ustreamer@.service
                mv: target '/etc/systemd/system/ustreamer@.service' is not a directory
                pi@duet3:~ $
                
                A Former User? 1 Reply Last reply Reply Quote 0
                • A Former User?
                  A Former User @luckyflyer
                  last edited by

                  @luckyflyer said in Need help installing ustreamer:

                  tried,

                  pi@duet3:~ $ sudo mv /etc/systemd/system/ustreamer@.service: /etc/systemd/system/ustreamer@.service sudo chmod +x /etc/systemd/system/ustreamer@.service
                  mv: target '/etc/systemd/system/ustreamer@.service' is not a directory
                  pi@duet3:~ $
                  

                  forum messed the formatting, scroll up to where i posted it

                  1 Reply Last reply Reply Quote 0
                  • luckyflyerundefined
                    luckyflyer
                    last edited by

                    same,

                    pi@duet3:~ $ sudo mv /etc/systemd/system/ustreamer@.service: /etc/systemd/system/ustreamer@.service sudo chmod +x /etc/systemd/system/ustreamer@.service
                    mv: target '/etc/systemd/system/ustreamer@.service' is not a directory
                    pi@duet3:~ $
                    
                    A Former User? 1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User @luckyflyer
                      last edited by

                      @luckyflyer thats the same, its two commands, forum made it one line when i made it a quote. look for one that is two lines, i'm not gonna quote it again just to have the forum mess it up again

                      1 Reply Last reply Reply Quote 0
                      • luckyflyerundefined
                        luckyflyer
                        last edited by

                        I copy and pasted, nothing else to do right?

                        1 Reply Last reply Reply Quote 0
                        • luckyflyerundefined
                          luckyflyer
                          last edited by

                          roger one moment

                          1 Reply Last reply Reply Quote 0
                          • luckyflyerundefined
                            luckyflyer
                            last edited by

                            ok colon now gone,

                            pi@duet3:~ $ ls -al /etc/systemd/system
                            total 76
                            drwxr-xr-x 17 root root 4096 May 31 00:25 .
                            drwxr-xr-x  5 root root 4096 May 19 06:26 ..
                            -rw-r--r--  1 root root 1551 Apr  7 06:06 autologin@.service
                            drwxr-xr-x  2 root root 4096 May 19 07:56 basic.target.wants
                            drwxr-xr-x  2 root root 4096 May 19 06:36 bluetooth.target.wants
                            lrwxrwxrwx  1 root root   42 May 19 06:38 dbus-fi.w1.wpa_supplicant1.service -> /lib/systemd/system/wpa_supplicant.service
                            lrwxrwxrwx  1 root root   37 May 19 06:36 dbus-org.bluez.service -> /lib/systemd/system/bluetooth.service
                            lrwxrwxrwx  1 root root   40 May 19 06:37 dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
                            lrwxrwxrwx  1 root root   45 May 19 06:26 dbus-org.freedesktop.timesync1.service -> /lib/systemd/system/systemd-timesyncd.service
                            lrwxrwxrwx  1 root root   34 May 19 06:38 dhcpcd5.service -> /lib/systemd/system/dhcpcd.service
                            lrwxrwxrwx  1 root root   35 May 19 07:58 display-manager.service -> /lib/systemd/system/lightdm.service
                            drwxr-xr-x  2 root root 4096 May 19 06:26 getty.target.wants
                            drwxr-xr-x  2 root root 4096 May 19 06:31 getty@tty1.service.d
                            drwxr-xr-x  2 root root 4096 May 19 07:58 graphical.target.wants
                            drwxr-xr-x  2 root root 4096 May 19 06:35 halt.target.wants
                            drwxr-xr-x  2 root root 4096 May 25 20:04 multi-user.target.wants
                            drwxr-xr-x  2 root root 4096 May 19 06:28 network-online.target.wants
                            drwxr-xr-x  2 root root 4096 May 19 06:35 poweroff.target.wants
                            drwxr-xr-x  2 root root 4096 May 19 06:38 rc-local.service.d
                            drwxr-xr-x  2 root root 4096 May 19 06:35 reboot.target.wants
                            drwxr-xr-x  2 root root 4096 May 19 06:36 remote-fs.target.wants
                            drwxr-xr-x  2 root root 4096 May 19 08:03 sockets.target.wants
                            lrwxrwxrwx  1 root root   31 May 19 06:36 sshd.service -> /lib/systemd/system/ssh.service
                            drwxr-xr-x  2 root root 4096 May 19 06:36 sysinit.target.wants
                            lrwxrwxrwx  1 root root   35 May 19 06:28 syslog.service -> /lib/systemd/system/rsyslog.service
                            drwxr-xr-x  2 root root 4096 May 19 06:29 timers.target.wants
                            -rwxr-xr-x  1 root root  217 May 30 12:24 ustreamer@.service
                            pi@duet3:~ $
                            
                            A Former User? 1 Reply Last reply Reply Quote 0
                            • A Former User?
                              A Former User @luckyflyer
                              last edited by

                              @luckyflyer said in Need help installing ustreamer:

                              ok colon now gone,

                              should help, do the daemon-reload and start stuff again?

                              luckyflyerundefined 1 Reply Last reply Reply Quote 0
                              • luckyflyerundefined
                                luckyflyer
                                last edited by

                                Now,

                                cat /etc/systemd/system/ustreamer@.service
                                

                                looks like,

                                pi@duet3:~ $ cat /etc/systemd/system/ustreamer@.service
                                [Unit]
                                Description=UStreamer for %I
                                [Service]
                                Type=simple
                                ExecStart=/usr/local/bin/ustreamer --exit-on-parent-death -r 640x480 --static /tmp/ -d /dev/%i --host=0.0.0.0 --port=8080
                                [Install]
                                WantedBy=multi-user.target
                                pi@duet3:~ $
                                
                                1 Reply Last reply Reply Quote 0
                                • luckyflyerundefined
                                  luckyflyer @A Former User
                                  last edited by

                                  should help, do the daemon-reload and start stuff again?

                                  daemon-reload? Sorry 12:30 am I pretty dingy can't last much longer.

                                  A Former User? 1 Reply Last reply Reply Quote 0
                                  • A Former User?
                                    A Former User @luckyflyer
                                    last edited by

                                    @luckyflyer said in Need help installing ustreamer:

                                    should help, do the daemon-reload and start stuff again?

                                    daemon-reload? Sorry 12:30 am I pretty dingy can't last much longer.

                                    this post https://forum.duet3d.com/post/157829

                                    1 Reply Last reply Reply Quote 0
                                    • luckyflyerundefined
                                      luckyflyer
                                      last edited by

                                      It took it all now rebooting

                                      1 Reply Last reply Reply Quote 0
                                      • luckyflyerundefined
                                        luckyflyer
                                        last edited by

                                        Rebooted and logged on, went to http://192.168.0.181:8080/stream but no image. When I manually start pgm image is there.

                                        1 Reply Last reply Reply Quote 0
                                        • A Former User?
                                          A Former User @gtj0
                                          last edited by

                                          in Need help installing ustreamer:

                                          ###  When the Pi is back up, check the status of the service...
                                          $ sudo systemctl status ustreamer@video0
                                          

                                          anyways, i've got to see a lighthouse about a dog.

                                          1 Reply Last reply Reply Quote 0
                                          • luckyflyerundefined
                                            luckyflyer
                                            last edited by

                                            It's see a man about a horse over here, anyway....

                                            sudo systemctl status ustreamer@video0
                                            
                                            pi@duet3:~ $ sudo systemctl status ustreamer@video0
                                            ā— ustreamer@video0.service - UStreamer for video0
                                               Loaded: loaded (/etc/systemd/system/ustreamer@.service; enabled; vendor prese
                                               Active: failed (Result: exit-code) since Sun 2020-05-31 00:35:26 MDT; 9min ag
                                              Process: 351 ExecStart=/usr/local/bin/ustreamer --exit-on-parent-death -r 640x
                                             Main PID: 351 (code=exited, status=203/EXEC)
                                            
                                            May 31 00:35:25 duet3 systemd[1]: Started UStreamer for video0.
                                            May 31 00:35:25 duet3 systemd[351]: ustreamer@video0.service: Failed to execute
                                            May 31 00:35:25 duet3 systemd[351]: ustreamer@video0.service: Failed at step EXE
                                            May 31 00:35:26 duet3 systemd[1]: ustreamer@video0.service: Main process exited,
                                            May 31 00:35:26 duet3 systemd[1]: ustreamer@video0.service: Failed with result '
                                            
                                            pi@duet3:~ $
                                            
                                            A Former User? 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA