Navigation

    UBports Robot Logo

    UBports Forum

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

    boky

    @boky

    1
    Reputation
    5
    Profile views
    26
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    boky Follow

    Best posts made by boky

    • RE: index.html home directory

      @Giiba
      Grateful. The only directory where I have not checked. Documents do not work either.
      I had to install nginx, virtual hosts and run through localhost)))

      posted in Support
      B
      boky

    Latest 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