UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. alefnode
    3. Best
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 13
    • Groups 0

    Posts

    Recent Best Controversial
    • How to use Spotify on Ubuntu Touch

      Here you are going to have a how to install Spotify connect on your device and use a webapp to play all music you want from Spotify, only for premium accounts

      Step 1: Create a libertine container

      First of all we have to create a libertine container, so we are going to Settings > Libertine > Click on plus button on top right

      Wait until container be totally created, click on Container > top right on Settings > Container information > Operation details (view) and waint until finnish

      Step 2: Install curl on container

      First connect over ssh to mobile, for this you have to enable via "Tweak Tools" app (more info) and put you ssh key on it, then: ssh pablet@yourip
      See containers name: libertine-container-manager list and connect to container: libertine-container-manager exec -i xenial -c "/bin/bash"
      So now we can install curl: apt install curl

      Step 3: Install mopidy
      We continue connected to container after "Step 2" (and all steps from here to the end are connected in libertine container) so we execute:

      wget -q -O - https://apt.mopidy.com/mopidy.gpg | apt-key add -
      wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/stretch.list
      apt update
      apt install mopidy
      apt-get install mopidy-spotify
      

      Step 4: Configure mopidy to connect to Spotify

      Go to this link https://www.mopidy.com/authenticate/ and at bottom you have the connection to Spotify click on it and get the params client_id and client_secret
      Using you favorite shell editor (apt install vim-tiny) edit the file: vim.tiny /etc/mopidy/mopidy.conf
      And add at the end this lines with your data

      [spotify]
      username = ...your username...
      password = ...your password...
      client_id = ...client_id...
      client_secret = ...client_secret...
      

      Step 5: Edit desktop icon
      On file /usr/share/applications/mopidy.desktop modify line 8 to this:

      Exec=mopidy --config /etc/mopidy/mopidy.conf
      

      Step 6: Install dashboard
      Finally we have to install a web dashboard to play our music, for that we need pip so install all with that commands:

      apt install python-pip
      pip install --upgrade setuptools
      pip install Mopidy-Iris
      

      Step 7: Run spotify

      Now we have Spotify installed, so how we can play music, it's easy, go to Main Scope on Ubuntu touch, touch from bottom to up to open Desktop applications from libertine, open Mopidy and let it run (it never end loading because runs on backgroung) open Morph and go to http://127.0.0.1:6680 you see something like screenshot so go and select Iris
      screenshot20190714_182835752.png

      Note: If you care of battery consumption, don't worry about that, you can clos modipy app and stops running. Even that i was listenning music several ours and i don't detect more battery lose than normally.

      posted in App Development mopidy spotify ubuntu spotify
      alefnodeA
      alefnode
    • RE: Ubuntu Touch Q&A 51 Saturday 1st Of June At 19:00 UTC

      A couple of questions here.

      How is the working about integrating Wayland?
      Is going to continue with Click packaging system? How is the integration with Snap?

      Thanks

      posted in News
      alefnodeA
      alefnode
    • RE: Port to Essential PH-1

      I was trying to port this device, first of all we have to use halium to create an image.

      I give some tips here https://github.com/Halium/projectmanagement/issues/122

      Basically to work we have to make some changes

      1 - sudo apt install libssl-dev
      2 - Comment line 113 from ./kernel/essential/msm8998/drivers/staging/Kconfig
      ---- #source "drivers/staging/qcacld-3.0/Kconfig"
      3 - Modify file: build/target/product/verity.mk
      ---- Set PRODUCT_SUPPORTS_VERITY := false
      ---- And delete verity_key from PRODUCT_PACKAGES

      With that changes i build halium-boot.img and system.img

      But when i installed it i was on bootloop
      Anyone tried it?
      Anyone know how to debug the bootloop?

      posted in Porting
      alefnodeA
      alefnode
    • RE: New Ubuntu Touch App Development Audiocast

      Very good podcast!

      posted in News
      alefnodeA
      alefnode