UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. khurshid.alam
    3. Posts
    K
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Groups 0

    Posts

    Recent Best Controversial
    • Multicast-dns now works out of box with systemd-resolved and Networkmanager without avahi[Focal]]

      Tested this on Pixel3a, Rasberry pi, Pinephone & Oppo f1.

      Make partition writable

      sudo mount -o remount,rw /
      

      Create these files with following content, without affecting update or anything, create folder path witjh mkdir -p if required

      /etc/systemd/resolved.conf.d/mdns-systemd-resolved.conf

      [Resolve]
      MulticastDNS=yes
      

      /etc/NetworkManager/conf.d/mdns.conf

      [connection]
      connection.mdns=2
      

      Reboot or restart systemd-resolved.service and NetworkManager.service. Do this on your local machine as well (may also need reboot)

      Restart sshd. (sudo systemctl restart sshd)

      Now we can ssh into phone with hostaname.local

      ssh phablet@ubuntu-phablet.local

      And .local domains now resolves.

      $ resolvectl query -4 ubuntu-phablet.local
      ubuntu-phablet.local: 192.168.29.144           -- link: wlan0
      
      -- Information acquired via protocol DNS in 16.6ms.
      -- Data is authenticated: yes
      

      Remount filesystem as readonly

      sudo mount -o remount,ro /
      

      We can also broadcast sftp with systemd-dnssd

      /etc/systemd/dnssd/sftp.dnssd

      [Service]
      Name=%H
      Type=_sftp-ssh._tcp
      Port=22
      

      And it will appear on nautilus network share
      241902080-fa1747f3-f41e-468d-927a-8c15d243df0b.png

      posted in 20.04 Focal Fossa
      K
      khurshid.alam
    • RE: How to assign static IP on local network wifi on focal build (pixel 3a) ?

      @kugiigi

      What I wanted to do is place custom wifi config in conf.d directory. But there is no such folder under system-connection. If I create one network manager seems to ignore it and keep using the old ones.

      posted in 20.04 Focal Fossa
      K
      khurshid.alam
    • How to assign static IP on local network wifi on focal build (pixel 3a) ?

      Hi,

      I can do that though network manager on desktop,setting ip and gateway. Like 192.168.1.100

      Is there anyway to do that ? I check under /etc/network-manager/system-connection. Though not sure how and which one to edit without affecting updates.

      Using focal rc on pixel 3a.

      posted in 20.04 Focal Fossa
      K
      khurshid.alam