UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    [GUIDE] X Forwarding from Ubuntu Touch to Windows Desktop (via USB/WIFI)

    Scheduled Pinned Locked Moved General
    2 Posts 2 Posters 1.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • K Offline
        kugiigi
        last edited by kugiigi

        This is a simple guide on how you can run x apps installed on your UT device on your Windows desktop.
        Thanks to Kris Jace (from the UBports Supergroup) for the blogs about UT stuffs including X forwarding.
        I'm not good at explaining things and I won't be detailing this that much so bear with me 🙂

        Requirements:

        • Windows OS....I only tried Windows 7 and 10 but most likely it'll work in Windows 8 as well.
        • PuTTY (free)
        • Xming (free)
        • X apps installed on your UT device (I won't cover this. You may check http://kriscode.blogspot.com)

        Steps:

        1. Run PuTTYgen and click Generate.

        2. Follow the instruction and after it's done, click "Save private key" and save anywhere you like.

        3. Now copy all the texts inside the "Key" box. Paste it in a temporary text file.
          0_1514223629518_dfd9b44b-18ab-4a1d-9cad-d3ed72479a75-image.png

        4. Paste the text you've just stored in a temporary text file to the file "/home/.ssh/authorized _keys" ON YOUR DEVICE. I'll leave it to you how 😉

        Those steps are done to authenticate your PC with your UT device for SSH.

        1. You may now close PuTTYgen and open PuTTY. Under Connection >> SSH >> Auth, browse for the private key you've saved in step 2.

        2. Under, Connection >> SSH >> X11, check "Enable X11 forwarding" then put ":0.0" in the X display location.
          0_1514224522240_31cc181d-ed78-4ff8-af39-6a6194a3b19a-image.png

        3. Now on your device, if you want to do it via USB then enable RNDIS, you can do this in UT Tweak Tool or by running "android-gadget-service enable rndis". This will disable MTP/file transfer via USB. After this, connect your phone to your desktop via USB cable. Your desktop should detect this as an additional Ethernet network.
          If you want to do it wirelessly, just connect your UT device to the same network as your desktop via Wifi.

        4. Still on your device, run "ifconfig" and check the IP address either wifi (wlan0) or usb (rndis0)

        5. Back to PuTTY, under Session, put the IP address of your device in the field "Host Name (or IP address)". You may put a name in the field "Saved Sessions" and click Save if you want to save your settings and easily use in the future.
          0_1514224996572_072d8780-b64d-4185-996b-c26430b8f825-image.png

        6. Click Open and if your IP address is right, you'll be asked for the username. Just type "phablet" and just answer yes if there are dialogs that will come up. If you do everything so far correctly, you'll be successfully logged in.

        7. Open Xming and back in PuTTY, try opening any of your installed x apps like for example nautilus.
          0_1514225937511_14706509-5a10-4311-a02d-6c6dc9fb0541-image.png

        If you have questions or concerns, I'll try to answer them 🙂

        CAUTION: Do this at YOUR OWN RISK and don't do THIS AT WORK like what I'm planning to do 😛

        1 Reply Last reply Reply Quote 1
        • M Offline
          matteo
          last edited by

          Amazing information Kugi, thank you! As soon as I go back at work, I "WILL NOT USE IT" to open Ubuntu x-apps on Windows 😜

          Very good job indeed.

          Merry Christmas!

          Matteo

          1 Reply Last reply Reply Quote 0
          • First post
            Last post