Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. boky
    3. Posts
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 26
    • Best 1
    • Groups 0

    Posts made by boky

    • language-chooser

      Hey. If it's not difficult, how can you implement the address of an already open page with a redirect to google translate?

      {
                id: cer
                iconName: "language-chooser"
                onTriggered: {
                  webview.url = 'https://translate.google.com/[this open page]';
                }
                text: qsTr("language-chooser")
              },
      

      without setting the start page.
      Eg: https://my.site -start page.
      https://my.site/news/(publication) -translation into another language
      https://my.site/news/(publication_2) -translation into another language
      etc.

      posted in App Development
      B
      boky
    • RE: Morph browser

      @AppLee
      Wrong said, sorry for my English)), I meant it
      this

      posted in Support
      B
      boky
    • RE: Morph browser

      @dobey

      Hmm, I didn’t actually delete the morph browser. But I removed the morph browser with additional protection that I installed from git (it was installed in parallel). But if this is not possible (remove the morph browser, I'm afraid / have not tried))) then the question is removed.
      If it’s not difficult, who saw this topic with the morph browser, described the interaction with the torus, share the link.
      Thanks to everyone.

      posted in Support
      B
      boky
    • RE: Morph browser

      mmm. I mean the removal from UT Tweak Tool.
      Although it's possible here? morph-browser

      posted in Support
      B
      boky
    • RE: Morph browser

      Yeah. So, if you deleted the application, then it is already impossible to install?

      posted in Support
      B
      boky
    • Morph browser

      Morph browser already excluded from the repository?
      open-store

      posted in Support
      B
      boky
    • RE: No more "PINEPHONE - “Community Edition: UBports" ?

      Hey. who will tell you how approximately the number of phones has been sold? In what time?

      posted in General
      B
      boky
    • RE: TOR + Iptables

      I will answer myself)).
      Everything works "Toriptables". Python errors are not clear, but everything works. By the way, I am very grateful to those who will tell you how to add TOR to autostart.

      posted in Support
      B
      boky
    • TOR + Iptables

      Hey. Faced a problem. Toriptables worked about a month ago perfectly. Until recently, TOR + Iptables worked well. There was a problem starting toriptables. launch TOR

      $sudo tor
      
      /usr/local/bin$ sudo python2 toriptables2.py -l
       [+] Anonymizer status [ON]
       [*] Getting public IP, please wait...
       [?] Still waiting for IP address...
      Error in atexit._run_exitfuncs:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
          func(*targs, **kargs)
        File "toriptables2.py", line 70, in restart_tor
          my_public_ip = load(urlopen('http://ident.me/.json'))['address']
        File "/usr/lib/python2.7/json/__init__.py", line 291, in load
          **kw)
        File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
          return _default_decoder.decode(s)
        File "/usr/lib/python2.7/json/decoder.py", line 367, in decode
          raise ValueError(errmsg("Extra data", s, end, len(s)))
      ValueError: Extra data: line 1 column 8 - line 1 column 16 (char 7 - 15)
      Error in sys.exitfunc:
      Traceback (most recent call last):
        File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
          func(*targs, **kargs)
        File "toriptables2.py", line 70, in restart_tor
          my_public_ip = load(urlopen('http://ident.me/.json'))['address']
        File "/usr/lib/python2.7/json/__init__.py", line 291, in load
          **kw)
        File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
          return _default_decoder.decode(s)
        File "/usr/lib/python2.7/json/decoder.py", line 367, in decode
          raise ValueError(errmsg("Extra data", s, end, len(s)))
      ValueError: Extra data: line 1 column 8 - line 1 column 16 (char 7 - 15)
      

      Tried to do so /etc/tor/torrc

      VirtualAddrNetworkIPv4 10.192.0.0/10
      AutomapHostsOnResolve 1
      TransPort 9040
      DNSPort 53
      ExcludeExitNodes {RU},{UA},{BY}
      
      $ sudo rm -f /etc/resolv.conf 
      $ echo "nameserver 127.0.0.1" | sudo tee /etc/resolv.conf
      
      #!/bin/sh
      
      ### set variables
      #destinations you don't want routed through Tor
      _non_tor="192.168.1.0/24 192.168.0.0/24"
      
      #the UID that Tor runs as (varies from system to system)
      _tor_uid="XYZ" # UID  TOR (grep tor /etc/passwd!)
      
      #Tor's TransPort
      _trans_port="9040"
      
      ### flush iptables
      iptables -F
      iptables -t nat -F
      
      ### set iptables *nat
      iptables -t nat -A OUTPUT -m owner --uid-owner $_tor_uid -j RETURN
      iptables -t nat -A OUTPUT -p udp --dport 53 -j REDIRECT --to-ports 53
      
      #allow clearnet access for hosts in $_non_tor
      for _clearnet in $_non_tor 127.0.0.0/9 127.128.0.0/10; do
         iptables -t nat -A OUTPUT -d $_clearnet -j RETURN
      done
      
      #redirect all other output to Tor's TransPort
      iptables -t nat -A OUTPUT -p tcp --syn -j REDIRECT --to-ports $_trans_port
      
      ### set iptables *filter
      iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
      
      #allow clearnet access for hosts in $_non_tor
      for _clearnet in $_non_tor 127.0.0.0/8; do
         iptables -A OUTPUT -d $_clearnet -j ACCEPT
      done
      
      #allow only Tor output
      iptables -A OUTPUT -m owner --uid-owner $_tor_uid -j ACCEPT
      iptables -A OUTPUT -j REJECT
      
      $ sudo iptables-save > /etc/iptables_tor
      

      /etc/rc.local > exit 0

      iptables-restore < /etc/iptables_tor
      
      $ sudo update-rc.d tor enable
      
      

      Auto Backup will not work
      Got an error:

      sudo service tor start OR sudo /etc/init.d/tor start 
      aa-exec: ERROR: profile 'system_tor' does not exist
      

      Although from the desktop, through the adb shell, TOR starts well
      The whole problem is that I need TOR)))).
      How can you make globally Tor in a system?

      posted in Support
      B
      boky
    • RE: Download a file using webapp-container

      hmm ... this is how Morph is used, which has access to the Downloads.
      Local_St.png
      Or there special restriction.

      posted in App Development
      B
      boky
    • RE: Download a file using webapp-container

      @dobey loading in
      /.local/share/name.click

      posted in App Development
      B
      boky
    • Download a file using webapp-container

      Hey. Tell me how to download a file using webapp-container in /home/phablet/Downloads ?

      Exec=webapp-container --webappUrlPatterns="title.name" --enable-back-forward http://my-site.com
      

      If possible using webapp-container.
      Sorry, I could not find webapp-container -h

      posted in App Development
      B
      boky
    • RE: webapp-container

      @dobey I'm trying to view commands ))).
      And I don’t know how to do it.
      comm_ubports.png

      posted in App Development
      B
      boky
    • RE: webapp-container

      @ComLarsic It is not clear what needs to be done? How to run a command inside a click package?

      posted in App Development
      B
      boky
    • webapp-container

      Hey. How to watch teams ?

      webapp-container --help
      

      photo_2020-05-01_19-43-43.jpg

      Am I doing something wrong?

      posted in App Development
      B
      boky
    • webapp container

      Hey. How to download from a file system in a webapp container with html? Example:

      <!DOCTYPE html>
      <html>
       <head>
        <meta charset="utf-8">
        <title>send</title>
       </head>
       <body>
        <form enctype="multipart/form-data" method="post">
         <p><input type="file" name="f">
         <input type="submit" value="send"></p>
        </form> 
       </body>
      </html>
      

      without using a script

      posted in App Development
      B
      boky
    • RE: Options for a good XMPP client?

      @poVoq Is it possible to implement port 5222 support?

      posted in App Development
      B
      boky
    • RE: [Guide] Code completion on Qt Creator for Ubuntu.Components

      @lduboeuf

      FROM clickable/ubuntu-sdk:16.04-amd64
      
      RUN apt-get update && apt-get install -y git qtcreator libxrender1 gdb
      
      #CMD ["/usr/bin/qtcreator"]
      
      ./ut-qtcreator.sh
      access control disabled, clients can connect from any host
      
      

      tired of installing. Download every time)))
      displayed when unpacking

      debconf: delaying package configuration, since apt-utils is not installed
      
      

      although the package itself is installed

      posted in App Development
      B
      boky
    • Chaining multiple commands is deprecated and will be rejected in a future version of Clickable.

      Running clickable clean build-libs build click-build shows the following:

      clickable clean build-libs build click-build
      "dependencies_build" is deprecated. Use "dependencies_host" instead!
      Chaining multiple commands is deprecated and will be rejected in a future version of Clickable.
      Building qxmpp
      Unable to find image 'clickable/ubuntu-sdk:16.04-armhf' locally
      16.04-armhf: Pulling from clickable/ubuntu-sdk
      fe703b657a32: Already exists 
      f9df1fafd224: Already exists 
      a645a4b887f9: Already exists 
      57db7fe0b522: Already exists 
      72511e7ca52e: Pull complete 
      36729facdc2a: Downloading [==>                                                ]  3.193MB/60.42MB
      32891478e09a: Downloading [>                                                  ]  3.222MB/529.5MB
      f05da3905af4: Downloading [>                                                  ]  1.067MB/123.7MB
      7515a823503a: Waiting 
      a338df923bec: Waiting 
      e2d792f6e413: Pulling fs layer 
      343e6d95b2fe: Waiting 
      52e43b9d0edc: Waiting 
      67c8daa6fbbc: Waiting 
      1f2018ac5b81: Pulling fs layer 
      
      

      Hard disk size is limited. Clickable installed. Downloading new components, what was 2.9 Gb?

      posted in App Development
      B
      boky