UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. boky
    3. Posts
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 10
    • Posts 29
    • Groups 0

    Posts

    Recent Best Controversial
    • webapp using onion-browser

      Hi.
      How to create webapp using onion-browser? (non morph-browser)

      posted in App Development
      B
      boky
    • RE: Best recent phone hardware for install ?

      @stanwood Hi. Tell us how the installation went on Redmi Note 7

      posted in General
      B
      boky
    • RE: Best recent phone hardware for install ?

      I want to buy a pinphone, but it doesn't ship to my country), which is very sad. I'm looking closely at Redmi, how much does it fall short of Nexus 5 in terms of functionality?
      from of thisit is not clear, since It loses the connection to the cell network.

      posted in General
      B
      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 sorry
      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