PINE64
debian+phosh running on PinePhone - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: debian+phosh running on PinePhone (/showthread.php?tid=9016)



RE: debian+phosh running on PinePhone - rico - 04-30-2020

(04-28-2020, 12:01 PM)rico Wrote:
(04-28-2020, 10:25 AM)dukla2000 Wrote:
(04-28-2020, 08:29 AM)a-wai Wrote:
(04-28-2020, 08:02 AM)dukla2000 Wrote: b) Even adding an dhcp-range 10.0.0.50,10.0.0.150 I cant get internet sharing to work via the USB port!
Did you disable the "hardcoded" config first ? (assuming you have pinephone-devtools installed, it is stored in /etc/NetworkManager/system-connections/USB-gadget.nmconnection)

Not yet - hope @rico can bail my pathetic networking skills out on this one! I see usb0 is in USB-gadget mode - need to work out how to get it into Hotspot mode as per wlan0.

You mean access the internet from the PC via usb ?
using the phone as a usb modem ?

Do you have a Linux like OS on the client side (PC) ? (not just to ask but to answer it will be helpfull)

Currently you have an 'out of the box' point to point connection between the client (PC) and the server (PinePhone) if pinephone-devtools are installed as mentionned by a-wai on previous page
But as the ssh-server even if it can be usefull, we have to "point the interest of all" before making this feature a default feature.


Anyway i'll try tomorrow just to find an answer (not now, i forgot my PinePhone at work Sad , bad day...)
ip forwarding and NAT are not pre-configured (even with 'pinephone-devtools' installed)

On the last build (clean)


Code:
apt-get install pinephone-devtools dnsmasq-base

Code:
nmcli connection modify USB-gadget ipv4.method shared

Reboot and voila.

What change :
The client is in DHCP.

//edit: remove firewalld


RE: debian+phosh running on PinePhone - a-wai - 05-01-2020

(04-30-2020, 05:43 PM)antiX-Dave Wrote: There are a few updates after the latest image but there seems to be an issue with the phoc package. I think it is due to it requiring a different version of libgnome-desktop which was part of the update. I think there are other packages with this problem as well (evince?)

Indeed, the libgnome-desktop migration broke a bunch of packages, I've just rebuilt and uploaded them, updates should be OK now. Thanks for pointing this out!

For those having updated before this was fixed, make sure you install package 'task-pinephone-phosh' to get everything back!

(04-30-2020, 10:56 PM)Segfault Wrote:      To the mods/community: it seems to me that 467 replies/~41k views(!) might suggest there is sufficient interest to get a Debian pinephone sub-forum?

That's a good point, @Luke do you think you could move this topic to a "Debian on PinePhone" subforum?


RE: debian+phosh running on PinePhone - Luke - 05-01-2020

I finally had a moment to give the 2704 image with crust a spin.
Went to sleep around midnight and left the phone unplugged (it was fully charged), picked it up today around 11AM ... it came right up, and still had some 25% battery left. This is pretty awesome Smile
[Image: 8yvfQtd.jpg]


RE: debian+phosh running on PinePhone - Luke - 05-01-2020

Quote:.... @Luke do you think you could move this topic to a "Debian on PinePhone" subforum?

Sure. @fire219 could you please set that up and move this thread over? many thanks.


RE: debian+phosh running on PinePhone - Boern - 05-01-2020

(04-30-2020, 11:39 PM)rico Wrote:
Code:
apt-get install pinephone-devtools dnsmasq-base

I think installing dnsmasq fixed the wifi hotspot for me. At least it sounds reasonable to me.


RE: debian+phosh running on PinePhone - dflag84 - 05-01-2020

(05-01-2020, 05:41 AM)Luke Wrote: I finally had a moment to give the 2704 image with crust a spin.
Went to sleep around midnight and left the phone unplugged (it was fully charged), picked it up today around 11AM  ... it came right up, and still had some 25% battery left. This is pretty awesome Smile
[Image: 8yvfQtd.jpg]

You think you could explain how you achieve that? Do we have to enable anything to enjoy that CRUST feature? I freshly flashed the latest update and tried any kind of suspend mode and never got that much battery... :-(


RE: debian+phosh running on PinePhone - Luke - 05-01-2020

@dflag84 as explained earlier in this thread: settings-> Power -> suspend & power button
I set On Battery Power to 15min.


RE: debian+phosh running on PinePhone - fire219 - 05-01-2020

Thread moved to new "Debian on PinePhone" subforum.


RE: debian+phosh running on PinePhone - cefre00 - 05-02-2020

(04-30-2020, 03:55 PM)dukla2000 Wrote:
(04-30-2020, 10:44 AM)cefre00 Wrote:
(04-30-2020, 01:56 AM)dukla2000 Wrote:
(04-30-2020, 01:30 AM)cefre00 Wrote: Hi All! Smile

Is there a way to disable auto-brightness? Nice feature, but drives me crazy.

Thanks!

Yup, Settings, Power

That way does not work. That was my first move. The slider goes to the right, but remains blue and nothing changes. Sad

Sometimes phosh can be perverse - just keep trying left/right clicks, left slides etc and eventually you will get it on the left and grey!

It was, thanks for the advice I got it working finally. Smile


RE: debian+phosh running on PinePhone - dukla2000 - 05-02-2020

(04-30-2020, 11:39 PM)rico Wrote:
(04-28-2020, 12:01 PM)rico Wrote:
(04-28-2020, 10:25 AM)dukla2000 Wrote:
(04-28-2020, 08:29 AM)a-wai Wrote:
(04-28-2020, 08:02 AM)dukla2000 Wrote: b) Even adding an dhcp-range 10.0.0.50,10.0.0.150 I cant get internet sharing to work via the USB port!
Did you disable the "hardcoded" config first ? (assuming you have pinephone-devtools installed, it is stored in /etc/NetworkManager/system-connections/USB-gadget.nmconnection)

Not yet - hope @rico can bail my pathetic networking skills out on this one! I see usb0 is in USB-gadget mode - need to work out how to get it into Hotspot mode as per wlan0.

You mean access the internet from the PC via usb ?
using the phone as a usb modem ?

Do you have a Linux like OS on the client side (PC) ? (not just to ask but to answer it will be helpfull)

Currently you have an 'out of the box' point to point connection between the client (PC) and the server (PinePhone) if pinephone-devtools are installed as mentionned by a-wai on previous page
But as the ssh-server even if it can be usefull, we have to "point the interest of all" before making this feature a default feature.


Anyway i'll try tomorrow just to find an answer (not now, i forgot my PinePhone at work Sad , bad day...)
ip forwarding and NAT are not pre-configured (even with 'pinephone-devtools' installed)

On the last build (clean)


Code:
apt-get install pinephone-devtools dnsmasq-base

Code:
nmcli connection modify USB-gadget ipv4.method shared

Reboot and voila.

What change :
The client is in DHCP.

//edit: remove firewalld

I've also got a dhcp-range in /etc/dnsmasq.conf, and /proc/sys/net/ipv4/ip_forward = 1 via /etc/sysctl.conf which are artefacts from my fiddling about, but from your instructions I presume are not necessary? Will double check next time I do a clean install.