<div dir="ltr"><div>Sahlan,<br></div><div>There is a potential routing issue, you have the same network connected to different devices (usb networking and vm/dev networks) so the machine may end up sending packets over one interface but not the other and vice versa.</div><div>It's not advisable in general to work like that since you are making trouble shooting that much harder for yourself because you now have to account for unpredictable and undefined network behavior.</div><div>Regards,</div><div>Eli<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 23 jul. 2019 om 23:29 schreef Sahlan <<a href="mailto:sahlan@businessassistant.biz">sahlan@businessassistant.biz</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div><div><div>Eli,</div><div><br></div><div>My development PCs  and VMs running on OSX (about twelve in total) each use a static i.p. address from that range, but not the 192.168.2.15 address that the phone is currently set to. No devices use DHCP. Are you saying there might still be a clash with an address used by the Jolla subnet of which I won't be aware? Tomorrow I will install arp-scan to see if it can pick up an address clash problem. I will also try making a connection by wi-fi instead of usb, as the phone reports wifi as being on the 192.168.3.x subnet. When I added the Jolla phone, it reported success, but, as I said in my second email, the Debug / Start and Break on Main does not seem to be working.</div><div><br></div><div>Regards,</div><div><br></div><div>Sahlan </div></div></div></div>
<div><br></div>
<div>------ Original Message ------</div>
<div>From: "E.S. Rosenberg" <<a href="mailto:es.rosenberg+sailfishos.org@gmail.com" target="_blank">es.rosenberg+sailfishos.org@gmail.com</a>></div>
<div>To: "Sahlan" <<a href="mailto:sahlan@businessassistant.biz" target="_blank">sahlan@businessassistant.biz</a>>; "Sailfish OS Developers" <<a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a>></div>
<div>Sent: 23/07/2019 19:38:41</div>
<div>Subject: Re: [SailfishDevel] Question about connecting a Sailfish phone to Ubuntu Linux box</div><div><br></div>
<div id="gmail-m_4447630160321890251xa7cb377e24074fc"><blockquote cite="http://CAHxFV_saLsZBFKDfd_i3O7AOXsroEMnfvADjZzjed21u2AL+6w@mail.gmail.com" type="cite" class="gmail-m_4447630160321890251cite2">
<div dir="ltr"><div>Sahlan,</div><div>Did you change your LAN to not be on <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a>?</div><div>As mentioned previously your LAN IPs clash with the Jolla USB subnet and this *will* lead to unpredictable behavior.</div><div>HTH,</div><div>Eliyahu - אליהו<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 23 jul. 2019 om 18:59 schreef Sahlan <<a href="mailto:sahlan@businessassistant.biz" target="_blank">sahlan@businessassistant.biz</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div><div>Hello,</div><div><br></div><div>Thanks to the several people who gave advice on my problem, I have made progress.</div><div>a) I updated my Jolla phone to the latest update it was offering: 3.0.0.8</div><div>b) I updated VirtualBox on Ubuntu to the new version 6</div><div>c) I uninstalled and reinstalled the Sailfish SDK, same version as before, 2.1.1, but this time I ticked the boxes to add images for my updated phone OS, 3.0.0.8</div><div>d) I made no changes to my settings for the phone Developer Mode, but I did open the terminal and issue the command devel-su</div><div>e) Now, when I tried to add the phone hardware, the result was successful.</div><div><br></div><div>I then built a skeleton Sailfish app in Qt Creator with the phone being the target. I added no code to the default code created. As you would expect, it builds fine. Now I am confused as what to do next. In Xamarin-Android development one naturally proceeds to the deploy stage, so I did that in QtCreator and chose the Build / Deploy option, and it told me RPMs had been created OK, but, under the Issues tab, I get the message "No RPM validation suite is available for the current Sailfish OS build target, the package will not be validated"</div><div><br></div><div> Then I clicked Debug / Start and Break on Main, but nothing happens. I've searched for info on how to debug on Sailfish with QtCreator but haven't found anything. Can anyone suggest a url for a step by step page of instructions?</div><div><br></div><div>PS Having updated my phone to 3.0.0.8, I see a message telling me 3.1.0.11 is available. I wonder if it is going to work its way incrementally through the available updates :)</div><div><br></div><div>Regards,</div><div><br></div><div>Sahlan</div>
<div><br></div>
<div>------ Original Message ------</div>
<div>From: "David Llewellyn-Jones" <<a href="mailto:david@flypig.co.uk" target="_blank">david@flypig.co.uk</a>></div>
<div>To: <a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a></div>
<div>Sent: 19/07/2019 11:04:27</div>
<div>Subject: Re: [SailfishDevel] Question about connecting a Sailfish phone to Ubuntu Linux box</div><div><br></div>
<div id="gmail-m_4447630160321890251gmail-m_-6706612921309460558x1e47b743adf643a" class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain"><blockquote cite="http://bc99f6d5-0bc1-3219-350e-46c9bbedc732@flypig.co.uk" type="cite" class="gmail-m_4447630160321890251gmail-m_-6706612921309460558cite2">

<tt><div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">On 19/07/2019 12:27, Sahlan wrote:</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">[snip]</div>
<blockquote type="cite" class="gmail-m_4447630160321890251gmail-m_-6706612921309460558cite">
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> I have</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> purchased a phone which is running Sailfish 3 and have set up Developer</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> Mode on it. On Ubuntu 18.04 LTS, I installed the Sailfish Qt Creator IDE</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> and built a simple test app.</div>
</blockquote>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> </div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">Which phone are you using? Did you flash it over USB to install</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">Sailfish? Your setup with Ubuntu is pretty standard, so it should work.</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> </div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">It's an obvious question, but did you, activate the Remote connection</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">option, and give yourself a root password?</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> </div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"><a href="https://jolla.zendesk.com/hc/en-us/articles/202011863-How-to-enable-Developer-Mode" target="_blank">https://jolla.zendesk.com/hc/en-us/articles/202011863-How-to-enable-Developer-Mode</a></div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> </div>
<blockquote type="cite" class="gmail-m_4447630160321890251gmail-m_-6706612921309460558cite2">
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> I connected the Sailfish phone via USB and</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> confirmed with lsusb that the device is recognised as being connected.</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> Under Tools / Options / Devices, I try to add the phone as a Sailfish OS</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> Physical Device. The IP address, username and password correctly</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> correspond to those on the phone, but clicking "Test Connection" always</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> gives me the message "Host unreachable". Increasing the SSH timeout does</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> not help. I also tried pinging the i.p. address of the phone from a</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> terminal window, and it is not found, though I am not sure whether ping</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> should work with i.p. over usb.</div>
</blockquote>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> </div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">Pinging should work over USB, and personally I'd focus on getting that</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">to work first, since until you can ping it's unlikely ssh will work.</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> </div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">It might also be worth trying to ping in the opposite direction (i.e</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">pinging your computer from the phone over USB) by opening a console on</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">the phone and using something like this:</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> </div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">su-devel ping 192.16.2.6</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> </div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">Some of the advice on this page may also be useful (if not now, then</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">once you have a connection!):</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> </div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"><a href="https://sailfishos.org/wiki/Sailfish_OS_Cheat_Sheet" target="_blank">https://sailfishos.org/wiki/Sailfish_OS_Cheat_Sheet</a></div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line"> </div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">David</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">--</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">Website: <a href="http://www.flypig.co.uk" target="_blank">http://www.flypig.co.uk</a></div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">_______________________________________________</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">SailfishOS.org Devel mailing list</div>
<div class="gmail-m_4447630160321890251gmail-m_-6706612921309460558plain_line">To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></div>
</tt></blockquote></div>


</div>_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></blockquote></div>
</blockquote></div>
</div></blockquote></div>