https://ubuntu.webarch.uk/w/api.php?action=feedcontributions&user=Matthias&feedformat=atomUbuntuPhone - User contributions [en]2024-03-28T11:54:15ZUser contributionsMediaWiki 1.35.6https://ubuntu.webarch.uk/w/index.php?title=USB_networking&diff=36USB networking2015-04-18T09:09:12Z<p>Matthias: Created page with " USB networking: tethering For networking the bq supports tethering via an USB device. Connect the phone with your Linux, FreeBSD, ... whatever workstation and run the foll..."</p>
<hr />
<div><br />
USB networking: tethering<br />
<br />
For networking the bq supports tethering via an USB device. Connect the phone with your Linux, FreeBSD, ... whatever workstation and run the <br />
following in the terminal app:<br />
<br />
<syntaxhighlight lang="bash"><br />
android-gadget-service enable rndis<br />
</syntaxhighlight><br />
<br />
that will switch the USB port in the phone from '''MTP''' to '''tethering''' and create a 'rndis0' network device whith the IP addr '''10.42.0.1''' (seems to be static or configured); at the same time it offers to the connected computer an IP via DHCP (somehow it takes sometime);<br />
<br />
And SSH is fine too as:<br />
<br />
<syntaxhighlight lang="bash"><br />
ssh phablet@10.42.0.1<br />
Welcome to Ubuntu Utopic Unicorn (development branch) (GNU/Linux 3.4.67 armv7l) > <br />
</syntaxhighlight><br />
<br />
The routing to Internet works as well fine and all is '''NAT'ed''' behind the best interface to use (wlan0 if Wifi is up too):<br />
<br />
<syntaxhighlight lang="bash"><br />
netstat -rn<br />
Kernel IP routing table<br />
Destination Gateway Genmask Flags MSS Window irtt Iface<br />
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 wlan0<br />
10.42.0.0 0.0.0.0 255.255.255.0 U 0 0 0 rndis0<br />
172.28.23.131 0.0.0.0 255.255.255.255 UH 0 0 0 ccmni0<br />
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0<br />
</syntaxhighlight><br />
<br />
How can I set it as default to rndis enabled? <br />
<br />
Oliver Grawert:<br />
you cant, it is hardcoded on boot to always have working mtp (until<br />
here is a UI option to turn it on or off, we want regular users to<br />
lways be able to exchange files), but you can override it in a user<br />
pstart job that runs at a later point ...<br />
<br />
create /home/phablet/.config/upstart/rndis.conf with the following<br />
content:<br />
<br />
<syntaxhighlight lang="bash"><br />
start on started indicator-network<br />
<br />
task<br />
<br />
script<br />
android-gadget-service enable rndis<br />
end script<br />
</syntaxhighlight><br />
<br />
when the interface rndis0 is enabled, somehow HTTPS access to<br />
the Ubuntu's app store is no longer possible; investigating further ...<br />
<br />
<br />
[[Category:SSH]] <br />
[[Category:USB]]</div>Matthiashttps://ubuntu.webarch.uk/w/index.php?title=Main_Page&diff=35Main Page2015-04-18T08:54:03Z<p>Matthias: </p>
<hr />
<div>This wiki has been created to document things you can do with the command line on an Ubuntu Phone.<br />
<br />
People with accounts with administrator permissions can [https://ubuntu-phone.host1.webarch.net/w/index.php?title=Special:UserLogin/signup create accounts for other people].<br />
<br />
== Content ==<br />
<br />
# [[SSH access through Wifi]] &mdash; How to get SSH access to the Ubuntu Phone via Wifi<br />
# [[USB networking ]] &mdash; How to get SSH access through USB networking<br />
# [[Install Packages]] &mdash; make the filesystem read-write and install additional <code>.deb</code> packages<br />
# [[Find Phone]] &mdash; this is a script to find your phone on the local network by it's Mac address<br />
# [[Encrypted Home]] &mdash; add an additional account and create an encrypted home directory for it<br />
<br />
== Getting started ==<br />
<br />
<syntaxhighlight lang="bash"><br />
# this is a test of the syntax highlighting<br />
echo "hello world!" | sed 's/world/Ubuntu phone/'<br />
hello Ubuntu phone!<br />
</syntaxhighlight><br />
<br />
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]<br />
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]<br />
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]</div>Matthiashttps://ubuntu.webarch.uk/w/index.php?title=SSH_access_through_Wifi&diff=34SSH access through Wifi2015-04-18T08:43:46Z<p>Matthias: </p>
<hr />
<div><br />
<br />
How to get SSH access to the ubuntu-phone via Wifi:<br />
<br />
Login via terminal app, you will be user 'phablet' (the password is the unlock number).<br />
<br />
Enable SSH service with (remains after boot):<br />
<br />
<syntaxhighlight lang="bash"><br />
android-gadget-service enable ssh<br />
</syntaxhighlight><br />
<br />
Fetch your public key to the Phone from some place:<br />
<br />
<syntaxhighlight lang="bash"><br />
wget http://www.from.your.site/id_rsa.pub<br />
mkdir .ssh<br />
chmod 0700 .ssh<br />
mv id_rsa.pub .ssh/authorized_keys<br />
</syntaxhighlight><br />
<br />
Now you can look up your IP on the phone and use ssh to connect:<br />
<br />
<syntaxhighlight lang="bash"><br />
ip addr show wlan0|grep inet<br />
</syntaxhighlight><br />
<br />
from your workstation use:<br />
<br />
<syntaxhighlight lang="bash"><br />
ssh phablet@IP-addr-from-above-command<br />
</syntaxhighlight><br />
<br />
SSH-in is even possible when the device is locked and black; don't know<br />
if this is intention that it does not suspend; the configuration goes like this<br />
<br />
See also: <br />
<br />
* [http://askubuntu.com/questions/348714/how-can-i-access-my-ubuntu-phone-over-ssh/599041#599041 http://askubuntu.com/questions/348714/how-can-i-access-my-ubuntu-phone-over-ssh/599041#599041]<br />
* [[Find Phone]]<br />
<br />
<br />
[[Category:SSH]]</div>Matthiashttps://ubuntu.webarch.uk/w/index.php?title=SSH_access_through_Wifi&diff=27SSH access through Wifi2015-04-18T07:22:10Z<p>Matthias: </p>
<hr />
<div><br />
<br />
How to get SSH access to the ubuntu-phone via Wifi:<br />
<br />
Login via terminal app, you will be user 'phablet' (the password is the unlock number).<br />
<br />
Enable SSH service with (remains after boot):<br />
<br />
<syntaxhighlight lang="bash"><br />
$ android-gadget-service enable ssh<br />
</syntaxhighlight><br />
<br />
Fetch your public key to the Phone from some place:<br />
<br />
<syntaxhighlight lang="bash"><br />
$ wget http://www.from.your.site/id_rsa.pub<br />
$ mkdir .ssh<br />
$ chmod 0700 .ssh<br />
$ mv id_rsa.pub .ssh/authorized_keys<br />
</syntaxhighlight><br />
<br />
Now you can look up your IP on the phone and use ssh to connect:<br />
<br />
<syntaxhighlight lang="bash"><br />
$ ip addr show wlan0|grep inet<br />
</syntaxhighlight><br />
<br />
from your workstation use:<br />
<br />
<syntaxhighlight lang="bash"><br />
$ ssh phablet@IP-addr-from-above-command<br />
</syntaxhighlight><br />
<br />
SSH-in is even possible when the device is locked and black; don't know<br />
if this is intention that it does not suspend; the configuration goes like this<br />
<br />
see also: <br />
[http://askubuntu.com/questions/348714/how-can-i-access-my-ubuntu-phone-over-ssh/599041#599041 http://askubuntu.com/questions/348714/how-can-i-access-my-ubuntu-phone-over-ssh/599041#599041]</div>Matthiashttps://ubuntu.webarch.uk/w/index.php?title=SSH_access_through_Wifi&diff=26SSH access through Wifi2015-04-18T07:19:16Z<p>Matthias: Created page with " How to get SSH access to the ubuntu-phone via Wifi: Login via terminal app, you will be user 'phablet' (the password is the unlock number). Enable SSH service with (remain..."</p>
<hr />
<div><br />
<br />
How to get SSH access to the ubuntu-phone via Wifi:<br />
<br />
Login via terminal app, you will be user 'phablet' (the password is the unlock number).<br />
<br />
Enable SSH service with (remains after boot):<br />
<br />
<syntaxhighlight lang="bash"><br />
$ android-gadget-service enable ssh<br />
</syntaxhighlight><br />
<br />
Fetch your public key to the Phone from some place:<br />
<br />
<syntaxhighlight lang="bash"><br />
$ wget http://www.unixarea.de/id_rsa.pub<br />
$ mkdir .ssh<br />
$ chmod 0700 .ssh<br />
$ mv id_rsa.pub .ssh/authorized_keys<br />
</syntaxhighlight><br />
<br />
Now you can look up your IP on the phone and use ssh to connect:<br />
<br />
<syntaxhighlight lang="bash"><br />
$ ip addr show wlan0|grep inet<syntaxhighlight lang="bash"><br />
</syntaxhighlight><br />
<br />
from your workstation use:<br />
<br />
<syntaxhighlight lang="bash"><br />
ssh phablet@IP-addr-from-above-command<br />
</syntaxhighlight><br />
<br />
SSH-in is even possible when the device is locked and black; don't know<br />
if this is intention that it does not suspend; the configuration goes like this<br />
<br />
see also: <br />
[http://askubuntu.com/questions/348714/how-can-i-access-my-ubuntu-phone-over-ssh/599041#599041 http://askubuntu.com/questions/348714/how-can-i-access-my-ubuntu-phone-over-ssh/599041#599041]</div>Matthiashttps://ubuntu.webarch.uk/w/index.php?title=Main_Page&diff=25Main Page2015-04-18T07:13:16Z<p>Matthias: </p>
<hr />
<div>This wiki has been created to document things you can do with the command line on an Ubuntu Phone.<br />
<br />
People with accounts with administrator permissions can [https://ubuntu-phone.host1.webarch.net/w/index.php?title=Special:UserLogin/signup create accounts for other people].<br />
<br />
== Content ==<br />
<br />
# [[SSH access through Wifi]] &mdash; How to get SSH access to the Ubuntu Phone via Wifi<br />
# [[Install Packages]] &mdash; make the filesystem read-write and install additional <code>.deb</code> packages<br />
# [[Find Phone]] &mdash; this is a script to find your phone on the local network by it's Mac address<br />
# [[Encrypted Home]] &mdash; add an additional account and create an encrypted home directory for it<br />
<br />
== Getting started ==<br />
<br />
<syntaxhighlight lang="bash"><br />
# this is a test of the syntax highlighting<br />
echo "hello world!" | sed 's/world/Ubuntu phone/'<br />
hello Ubuntu phone!<br />
</syntaxhighlight><br />
<br />
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]<br />
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]<br />
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]</div>Matthiashttps://ubuntu.webarch.uk/w/index.php?title=Main_Page&diff=24Main Page2015-04-18T07:11:39Z<p>Matthias: </p>
<hr />
<div>This wiki has been created to document things you can do with the command line on an Ubuntu Phone.<br />
<br />
People with accounts with administrator permissions can [https://ubuntu-phone.host1.webarch.net/w/index.php?title=Special:UserLogin/signup create accounts for other people].<br />
<br />
== Content ==<br />
<br />
# [[Install Packages]] &mdash; make the filesystem read-write and install additional <code>.deb</code> packages<br />
# [[Find Phone]] &mdash; this is a script to find your phone on the local network by it's Mac address<br />
# [[Encrypted Home]] &mdash; add an additional account and create an encrypted home directory for it<br />
<br />
== Getting started ==<br />
<br />
<syntaxhighlight lang="bash"><br />
# this is a test of the syntax highlighting<br />
echo "hello world!" | sed 's/world/Ubuntu phone/'<br />
hello Ubuntu phone!<br />
</syntaxhighlight><br />
<br />
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]<br />
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]<br />
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]</div>Matthiashttps://ubuntu.webarch.uk/w/index.php?title=Main_Page&diff=5Main Page2015-04-17T20:12:43Z<p>Matthias: </p>
<hr />
<div>This wiki has been created to document things you can do with the command line on an Ubuntu Phone.<br />
<br />
People with accounts with administrator permissions can [https://ubuntu-phone.host1.webarch.net/w/index.php?title=Special:UserLogin/signup create accounts for other people].<br />
<br />
<syntaxhighlight lang="bash"><br />
# this is a test of the syntax highlighting<br />
echo "hello world!" | sed 's/world/Ubuntu phone/'<br />
hello Ubuntu phone!<br />
</syntaxhighlight><br />
<br />
== Getting started ==<br />
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]<br />
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]<br />
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]<br />
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]</div>Matthias