ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #11752
Re: Ethernet through USB
Am Dienstag, den 31.03.2015, 08:48 +0200 schrieb Matthias Apitz:
> El día Monday, March 30, 2015 a las 11:44:43AM +0200, Oliver Grawert escribió:
>
> > hi,
> > Am Montag, den 30.03.2015, 11:33 +0200 schrieb Matthias Apitz:
> > > El día Monday, March 30, 2015 a las 10:47:17AM +0200, Oliver Grawert escribió:
> > >
> > > > the phablet-shell command from the phablet-tools package does exactly
> > > > that ... (well, not with a full network setup, just with tunneling an
> > > > ssh connection through adb)
> > > >
> > > > https://launchpad.net/phablet-tools has the source, it is shell, so should theoretically work on your BSD as well ...
> > > >
> > > > for networking the bq supports tethering via a usb device (run the
> > > > following in the terminal app or via adb):
> > > >
> > > > android-gadget-service enable rndis
>
> Hi,
>
> It seems that re-booting the phone resets the state again to MTP
>
> phablet@ubuntu-phablet:~$ android-gadget-service status rndis
> rndis disabled
>
> How can I set it as default to rndis enabled?
you cant, it is hardcoded on boot to always have working mtp (until
there is a UI option to turn it on or off, we want regular users to
always be able to exchange files), but you can override it in a user
upstart job that runs at a later point ...
create /home/phablet/.config/upstart/rndis.conf with the following
content:
--------------- snip ------------------
start on started mtp-server
task
script
android-gadget-service enable rndis
end script
--------------- snap ----------------
ciao
oli
Follow ups
References