UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. amazones
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 8
    • Groups 0

    amazones

    @amazones

    11
    Reputation
    7
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    amazones Unfollow Follow

    Best posts made by amazones

    • Cool thing to do with a ubports device - remote sound player

      Say I have a computer and speakers that are on the other side of the room, can't connect to them through aux as I don't have a cable this long. No problem! As long as both the computer and phone are connected to the same local network, you can connect your phone to the aux of speakers and send audio from your 'puter:

      Run this command on your phone:

      pactl load-module module-native-protocol-tcp auth-ip-acl='127.0.0.1;192.168.10.0/24' #replace with your local range
      

      It'll open pulseaudio on port 4713 of your phone. Now on your computer:

      pactl load-module module-tunnel-sink server=<PHONE_IP> sink=1 
      

      Your phone will now be listed as one of the sinks on the computer. You can easily use pavucontrol to redirect sound from specified programs to your phone. You can use the phone speakers themselves or connect to speakers via aux. Haven't tested bluetooth yet.

      On my network there unfortunately also was some sound tearing, but for me its bearable. Tried to recreate sink with latency_msec=400 adjust_time=0 parameters and it kinda helped though, I think that one has to play around with these parameters or some other options in pulse, I'm no pulse master unfortunately.

      posted in General
      A
      amazones
    • Liberapay as a donation method

      Is liberapay still a valid method of donation to ubports? I see it vanished from the https://ubports.com/donate page. I think the pages below were featured there before:

      https://liberapay.com/ubports-foundation/
      https://liberapay.com/UBports/

      posted in Off topic
      A
      amazones
    • Clarification of ubports.com donations webpage

      About two weeks ago I posted a thread asking about liberapay donations which disappeared from the ubports.com/donate page.
      https://forums.ubports.com/topic/11214/liberapay-as-a-donation-method
      Perhaps i made the wrong board choice by posting it in the off-topic category, so I'd like to expand the question in the general board

      What is the best way to financially support the development of Ubports? Should everyone just use the "Mollie" system that is featured one the ubports.com/donate? For personal reasons I'd prefer to keep using liberapay, but if ubports gets better % from the mollie donations then I shall switch.

      I saw the recent Q&A where this topic was approached:
      https://www.youtube.com/live/tbigPY2jkHQ?feature=shared&t=1283
      The host presented multiple options of donation (direct bank transfer, patreon, liberapay) that are not on the donate page. I think that if they are truly valid, then they should also be featured on the donate page, this way it would be more clear that liberapay/patreon are associated with the foundation and aren't some kind of "scam".

      posted in General
      A
      amazones

    Latest posts made by amazones

    • Cool thing to do with a ubports device - remote sound player

      Say I have a computer and speakers that are on the other side of the room, can't connect to them through aux as I don't have a cable this long. No problem! As long as both the computer and phone are connected to the same local network, you can connect your phone to the aux of speakers and send audio from your 'puter:

      Run this command on your phone:

      pactl load-module module-native-protocol-tcp auth-ip-acl='127.0.0.1;192.168.10.0/24' #replace with your local range
      

      It'll open pulseaudio on port 4713 of your phone. Now on your computer:

      pactl load-module module-tunnel-sink server=<PHONE_IP> sink=1 
      

      Your phone will now be listed as one of the sinks on the computer. You can easily use pavucontrol to redirect sound from specified programs to your phone. You can use the phone speakers themselves or connect to speakers via aux. Haven't tested bluetooth yet.

      On my network there unfortunately also was some sound tearing, but for me its bearable. Tried to recreate sink with latency_msec=400 adjust_time=0 parameters and it kinda helped though, I think that one has to play around with these parameters or some other options in pulse, I'm no pulse master unfortunately.

      posted in General
      A
      amazones
    • RE: What are a few straightforward ways to write notes in Ubuntu Touch and be able to get them on the Internet/WWW on my Debian PC?

      For notes i use emacs with org-mode on desktop, on my ubuntu touch phone i have created a webapp with webber for organice and it works, just without the offline mode, perhaps noble will have better support for PWA apps. you also need a webdav server for that to synchronize notes with computer. It sucks that i need internet connection (or else it'll sign me outta my webdav server), but its alright for writing/reading notes.

      posted in Support
      A
      amazones
    • Clarification of ubports.com donations webpage

      About two weeks ago I posted a thread asking about liberapay donations which disappeared from the ubports.com/donate page.
      https://forums.ubports.com/topic/11214/liberapay-as-a-donation-method
      Perhaps i made the wrong board choice by posting it in the off-topic category, so I'd like to expand the question in the general board

      What is the best way to financially support the development of Ubports? Should everyone just use the "Mollie" system that is featured one the ubports.com/donate? For personal reasons I'd prefer to keep using liberapay, but if ubports gets better % from the mollie donations then I shall switch.

      I saw the recent Q&A where this topic was approached:
      https://www.youtube.com/live/tbigPY2jkHQ?feature=shared&t=1283
      The host presented multiple options of donation (direct bank transfer, patreon, liberapay) that are not on the donate page. I think that if they are truly valid, then they should also be featured on the donate page, this way it would be more clear that liberapay/patreon are associated with the foundation and aren't some kind of "scam".

      posted in General
      A
      amazones
    • Liberapay as a donation method

      Is liberapay still a valid method of donation to ubports? I see it vanished from the https://ubports.com/donate page. I think the pages below were featured there before:

      https://liberapay.com/ubports-foundation/
      https://liberapay.com/UBports/

      posted in Off topic
      A
      amazones
    • Get an app to manage SSH, grant permission to use `/bin/sh`

      How can I start and stop SSH in my clickable app? I'm using Python+QML, and I want to simply execute /etc/init.d/ssh start in shell, but I get the following error:

      Jul 01 12:47:53 ubuntu-phablet aa-exec[7215]: PermissionError: [Errno 13] Permission denied: '/bin/sh'
      

      How can I give my app access to the /bin/sh? Should I give it some special apparmor permission? I tried to add "template": "unconfined" to my apparmor file, but it doesn't let me do that and dies on me during build:

      Errors
      ------
       - security:template_valid:sshhelper.apparmor
              (NEEDS REVIEW) 'unconfined' not allowed
              http://askubuntu.com/q/671403
      

      Here's my app code, it's just straight up Python template with simple function to call shell commands:

      ## ssh.py
      import subprocess
      def execute_shell_command(command):
          process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
          output, error = process.communicate()
          return output.decode('utf-8'), error.decode('utf-8'), process.returncode
      
      // main.qml
      import QtQuick 2.7
      import Lomiri.Components 1.3
      import QtQuick.Layouts 1.3
      import Qt.labs.settings 1.0
      import io.thp.pyotherside 1.4
      
      MainView {
          id: root
          objectName: 'mainView'
          applicationName: 'test'
          automaticOrientation: true
      
          width: units.gu(45)
          height: units.gu(75)
      
          Page {
              anchors.fill: parent
      
              header: PageHeader {
                  id: header
                  title: i18n.tr('SSH Helper')
              }
      
              Label {
                  anchors {
                      top: header.bottom
                      left: parent.left
                      right: parent.right
                      bottom: parent.bottom
                  }
                  text: i18n.tr('Check the logs!')
      
                  verticalAlignment: Label.AlignVCenter
                  horizontalAlignment: Label.AlignHCenter
              }
          }
      
          Python {
              id: python
      
              Component.onCompleted: {
                  addImportPath(Qt.resolvedUrl('../src/'));
      
                  importModule('ssh', function() {
                      console.log('module imported');
                      python.call('ssh.execute_shell_command', ['/etc/init.d/ssh start'], function(returnValue) {
                          console.log('the command returned ' + returnValue);
                      })
                  });
              }
      
              onError: {
                  console.log('python error: ' + traceback);
              }
          }
      }
      
      
      
      posted in App Development
      A
      amazones
    • RE: /data folder not present in recovery mode

      @TheVancedGamer Thank you!

      posted in Oneplus 5/5T
      A
      amazones
    • /data folder not present in recovery mode

      I want to backup my system by pulling system-data and user-data folders from the /data catalog. When I boot into recovery by pressing vol+ and powering phone on, the data directory is present but it's empty. Is there something I'm doing wrong? I'm checking the directory by plugging the phone into computer and executing adb shell.
      Im on an Oneplus 5T

      posted in Oneplus 5/5T dumpling oneplus adb recovery
      A
      amazones