The installation of emacs is possible with the following commands:
sudo su
mount -o remount,rw /
apt-get install emacs
You need a passphrase or a number code for your phone and you need to install the com.ubuntu.terminal
-app to input these commands.
Emacs is also started from com.ubuntu.terminal
.
Specification of my phone: BQ Aquaris E5 Ubuntu-Edition
# uname -a
Linux ubuntu-phablet 3.4.67 #1 SMP PREEMPT Fri May 29 10:43:18 UTC 2015 8e13c5f armv7l armv7l armv7l GNU/Linux
Attention: As far as I understand what I read before, updating the phone via GUI is no longer possible after that.
Currently, I am asking here whether updating via apt-get
is a full replacement.
I am using the following configuration file ~/.config/com.ubuntu.terminal/Layouts/emacs.json
for working with emacs using the built-in virtual keyboard.
This configuration is far from ideal. I posted it here, since it is difficult to start without any emacs-adapted soft-keyboard on the console.
{
"name" : "GNU emacs",
"short_name" : "Emacs",
"buttons": [
{
"main_action" : {
"type": "key",
"text" : "E",
"key" : "Escape"
}
},
{
"main_action" : {
"type": "key",
"text" : "T",
"key" : "Tab"
}
},
{
"main_action" : {
"type": "key",
"text" : "Cg",
"key" : "G",
"mod" : "Control"
}
},
{
"main_action" : {
"type": "key",
"text" : "Cx",
"key" : "X",
"mod" : "Control"
}
},
{
"main_action" : {
"type": "key",
"text" : "Cc",
"key" : "C",
"mod" : "Control"
}
},
{
"main_action" : {
"type": "key",
"text" : "C_",
"key" : " ",
"mod" : "Control"
}
},
{
"main_action" : {
"type": "key",
"text" : "Cf",
"key" : "F",
"mod" : "Control"
}
},
{
"main_action" : {
"type": "key",
"text" : "Cs",
"key" : "S",
"mod" : "Control"
}
},
{
"main_action" : {
"type": "key",
"text" : "Mx",
"key" : "X",
"mod" : "Alt"
}
},
{
"main_action" : {
"type": "key",
"text" : "Cw",
"key" : "W",
"mod" : "Control"
}
},
{
"main_action" : {
"type": "key",
"text" : "Cy",
"key" : "Y",
"mod" : "Control"
}
},
{
"main_action" : {
"type": "key",
"text" : "Mw",
"key" : "W",
"mod" : "Alt"
}
},
{
"main_action" : {
"type": "key",
"text" : "Cv",
"key" : "V",
"mod" : "Control"
}
},
{
"main_action" : {
"type": "key",
"text" : "Cu",
"key" : "U",
"mod" : "Control"
}
},
{
"main_action" : {
"type": "key",
"text" : "Cw",
"key" : "W",
"mod" : "Control"
}
}
]
}
We can use /lib/init/fstab
. But before we should set a system partition as writable:
sudo android-gadget-service enable writable
After rebooting we can edit /lib/init/fstab
with sudo nano
or sudo vim
, for example we can add this string:
/dev/mmcblk1p2 /home/phablet/mnt/sd ext2 defaults,noatime,nodiratime,errors=remount-ro 0 2
to mount ext2 partition on sd card. Then, we make system partition read-only again: sudo rm /userdata/.writable_image
and reboot.
Of course, after getting new OTA we should repeat it again.
Standard /etc/fstab
is mystical in ubuntu-touch, mounting (binding) to tmpfs and seems is generated on-the-fly or just in starting. But /lib/init/fstab
works well.
Best Answer
Until there is a true background tasks/triggers/etc. API in Ubuntu itself this is probably not possible. It might hypothetically doable by creating a service that generates a push notification every hour and make your phone beep when it receives it, but I'm not sure if it is possible without adding a custom online account to the system image. Anyway it is kinda crazy idea and would be nothing more then a just-because-I-can solution.