UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to use Spotify on Ubuntu Touch

    Scheduled Pinned Locked Moved App Development
    mopidyspotify ubuntuspotify
    28 Posts 16 Posters 12.9k Views 6 Watching
    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.
      • P Offline
        Photojoe4
        last edited by

        Now if we could just get Tidal to work in the Morph browser (switched from Spotify after a recent change to their player made it unusable for me)....

        1 Reply Last reply Reply Quote 0
        • Josele13J Offline
          Josele13
          last edited by

          Thank you very much for editing this installation with Libertine, this makes it possible for all of us to enjoy Spotify more and learn how it's done,

          regards...

          Xiaomi Redmi Note 9 pro
          Oneplus Nord 100
          Xiaomi Redmi Note 7
          Nexus 5
          Bq E4.5 Ubuntu edition .... is dead

          1 Reply Last reply Reply Quote 1
          • alefnodeA Offline
            alefnode @stefwe
            last edited by

            @stefwe I finally test again, and if you select on browser a playlist to play then you see all songs on umpd

            1 Reply Last reply Reply Quote 0
            • S Offline
              stefwe
              last edited by

              Thank you for testing and reporting this. Maybe there is a way to display the available playlists and more in umpd. Must have a look at that.

              Meizu MX4 16.04 | Nexus 5 16.04

              1 Reply Last reply Reply Quote 0
              • H Offline
                hoogs
                last edited by hoogs

                Hi everybody!

                I would like to start by saying that I am grateful for this method of using Spotify on UBports, since making Spotify work was my greatest concern when switching from Android.

                I have one problem though: I can't seem to enable write privileges in Iris. By default, it only has read access to your Spotify playlists, etc. When I try to enable write access in Iris' settings it just doesn't work. I press "Log In" under "Authorization" in the settings, proceed to login with Spotify and then I just reach a white page. Has anyone been able to enable the setting?

                EDIT: I found a workaround! Installing the "Demo Browser" from the Open Store, using it to enable write privileges and then exporting the authorization from the Demo Browser Iris client to the Morph one (Iris settings > "Share configuration" > "Spotify authorization") I successfully enabled the write access πŸ™‚

                1 Reply Last reply Reply Quote 1
                • S Offline
                  schouk @alefnode
                  last edited by

                  @hadrianweb thank you for this how-to. it works perfectly for me.

                  I just like to mention that I had to install wget, too. And it is not needed to use ssh. You can all do it in the terminal on your ub touch device.

                  Again, thank you! πŸ™‚

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    savetier
                    last edited by

                    Followed the instructions recently, still works like a charm! πŸ™‚

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      rokkzox
                      last edited by

                      Sweet...!
                      Has anybody tried this method with a bq aquaris e4.5 ?

                      1 Reply Last reply Reply Quote 0
                      • W Offline
                        wdehoog @alefnode
                        last edited by

                        @hadrianweb How did you get mopidy keep on playing with the display off? I am trying to use spotify using librespot or spotifyd but the audio becomes teriibly choppy when the display goes off.

                        1 Reply Last reply Reply Quote 0
                        • alefnodeA Offline
                          alefnode
                          last edited by

                          Yeah, it also works well with screen off

                          1 Reply Last reply Reply Quote 0
                          • L Offline
                            L-00376 Banned @stefwe
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • H Offline
                              hackthisut
                              last edited by hackthisut

                              Sorry it don't work. See this Screenshot:

                              Screenshot von 2020-04-04 12.30.27.png

                              Any Ideas?

                              1 Reply Last reply Reply Quote 0
                              • HendriXXXH Offline
                                HendriXXX
                                last edited by

                                If I remember correct, you need to use newer python library with Mopidy. Xenial has too old..

                                I installed Mopidy with Ubuntu Bionic 18.04 - chroot and it is working fine.

                                H 1 Reply Last reply Reply Quote 0
                                • H Offline
                                  hackthisut @HendriXXX
                                  last edited by

                                  @HendriXXX Thanks for your reply! But what exactly do I have to do now? What commands do I have to enter?

                                  D 1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    dispanser @hackthisut
                                    last edited by

                                    @hackthisut

                                    I have the same problem; I followed the instructions, but mopidy won't run on my xenial-based libertine container. I tried running

                                    phablet@ubuntu-phablet:~$ libertine-container-manager create -i lxc-experiment -t lxc -d bionic

                                    to get a container based on a newer distribution, but that doesn't work:

                                    libertine-container-manager:76: ERROR: create(): System kernel does not support lxc type containers. Please either use chroot or omit the -t option.

                                    Not sure how to proceed; note that I'm making my first baby steps with ubuntu touch, so it's well possible that I messed up some initial step, making the guide non-appicable in the first place.

                                    alefnodeA 1 Reply Last reply Reply Quote 0
                                    • alefnodeA Offline
                                      alefnode
                                      last edited by

                                      I have installed again from zero making all the steps on guide and works well on xenial container

                                      1 Reply Last reply Reply Quote 0
                                      • alefnodeA Offline
                                        alefnode @dispanser
                                        last edited by

                                        @dispanser said in How to use Spotify on Ubuntu Touch:

                                        -d bionic

                                        The problem there is that you are not continuing the guide, try without using "-t lxc"

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          connochaetes
                                          last edited by

                                          Hello.

                                          Thank you for this instructive tutorial. Most of the steps went well. But there were some problems.

                                          (There 's the minor issue, that the referenced icon audio-x-generic isn't there. But I guess, that 's something, I'll figure out by myself. I just wanted to keep you informed.)

                                          Sadly, it won't work: If I click on the Mopidy icon, there 's a wheel for a moment. Then it stops and vanishes. Is there a way to get a log file?

                                          libertine-container-manager list-apps
                                          xenial_mopidy_0.0
                                          xenial_python2.7_0.0
                                          xenial_python3.5_0.0
                                          xenial_python3.7_0.0
                                          xenial_vim_0.0
                                          

                                          I had to do some version upgrades for Mopidy-Iris wouldn't start with python2.7. Could the problem be originated in the parallel installation of different versions of python?

                                          Container:
                                          Ubuntu 'Xenial Xerus' 16.04
                                          
                                          OnePlus One
                                          bacon
                                          Ubuntu 16.04 (OTA-12)
                                          

                                          Could it be a problem with the Spotify authorization? Do I have to use "..."? I am not sure, if I have to use the (kind of cryptic) username mentioned on https://www.spotify.com/de/account/overview/.

                                          Please, let me know, if you need further informatoin. Any help would be welcome.

                                          arubislanderA 1 Reply Last reply Reply Quote 0
                                          • arubislanderA Offline
                                            arubislander @connochaetes
                                            last edited by

                                            @connochaetes
                                            There is work being done on a native Spotify client by @manland. Look here to help testing the beta version of his app.

                                            πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                                            Happily running Ubuntu Touch
                                            Google Pixel 3a (20.04 DEV)
                                            JingPad (24.04 preview)
                                            Meizu Pro 5 (16.04 DEV)

                                            C 1 Reply Last reply Reply Quote 0
                                            • C Offline
                                              connochaetes
                                              last edited by

                                              OK. Obviously, I had to do some homework. (To all the readers: Thanks for your patience. Hopefully, my posts could be useful for UBports learners.)


                                              It 's a standard that you the libertine container's version is the same as UBports' - in my case 16.04 (xenial):

                                              libertine-container-manager create -i xenial
                                              

                                              I am switching as root into the newly built libertine container. It 's a GNU/LInux system where packages could be installed via apt:

                                              libertine-container-manager exec -i xenial -c "/bin/bash"
                                              

                                              For example, I am installing vim:

                                              apt install vim
                                              

                                              I am leaving the libertine container:

                                              exit
                                              

                                              Outside the libertine container, I can see the installed packages this way:

                                              libertine-container-manager list-apps
                                              

                                              I added the matching mopidy repository. If I am right, on a 16.04 (xenial) system, it has to be jessie:

                                              wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/jessie.list
                                              

                                              I am installing mopidy and mopidy-spotify via apt. I do the (hopefully) appropriate configuration. I am starting mopidy using the new icon in my OnePlus One's GUI. Here 's the appropriate log file:

                                              cat ~/.cache/upstart/application-legacy-xenial_mopidy_0.0-.log
                                              

                                              Yay! So far, all went well. - Now, I have to install Mopidy-Iris as a Python package. Therefore, I have to install Python3.7. This is, where the road is starting to get bumpy (for me), for I am not too familiar with Python packages:

                                              apt install software-properties-common
                                              add-apt-repository ppa:deadsnakes/ppa
                                              apt install python3.7
                                              apt install python3-pip
                                              python3.7 -m pip install Mopidy-Iris
                                              

                                              Now, thing's are getting out of (my) control:

                                              • A message is requesting me to upgrade pip.
                                              • I guess, mopidy is installed as a Python package in another version as the previous one.
                                              • I am not able to start mopidy via icon. I am not able to see a file ~/.cache/upstart/application-legacy-xenial_mopidy_0.0-.log.
                                              • Starting mopidy in the libertine container's console via command line, I see that (another version of) gstreamer is requested.

                                              I guess, this dependency mash-up is caused by Python3.7 from the deadsnakes repository. At this moment, I am not able to fix this.

                                              Any suggestions?

                                              1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post