ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #14236
running mutt (and other terminal applications) in the BQ E4.5
Hello,
I have attached below a complete description how to install a chrooted
system and run, for example, the MUA mutt from it. What remains: Is it
possible to run X11 applications to the MIR server, i.e. not to a remote
X11 server, but to the BQ screen? Thanks
matthias
--
Matthias Apitz, guru@xxxxxxxxxxx, http://www.unixarea.de/ +49-176-38902045
No! Nein! ¡No! Όχι! -- Ευχαριστούμε!
30. Installing an additional root FS and run 'mutt'
This is loosely based on https://askubuntu.com/questions/620740 (which is fine
but does not work as given). We do this while ssh'ed into the device. If you later
want to use this system from the terminal-app see below about the ssh into
localhost. Install the chrooted system as:
$ wget http://cdimage.ubuntu.com/ubuntu-touch/vivid/daily-preinstalled/current/vivid-preinstalled-touch-armhf.tar.gz
$ mkdir myRoot
$ cd myRoot
$ sudo tar xzf ../vivid-preinstalled-touch-armhf.tar.gz
$ sudo chroot .
#
# echo "nameserver 127.0.1.1" > /etc/resolv.conf
I don't know why the addr must be 127.0.1.1, but it's used as this in the host system
of the BQ; in any case, this should make network happy and we can test it with:
# ping www.muc.de
and go to install, best while connected via Wifi:
# apt-get update
# apt-get install mutt
# apt-get install libsasl2-modules # mutt needs this
# apt-get install telnet
# apt-get install vim
# su phablet
$ cd
$ pwd
/home/phablet # which is in real ~/myRoot/home/phablet
$ mkdir tmp # needed by vim
$ mkdir Mail # needed by mutt
I copied some files from my netbook into the chrooted system, files
needed by mutt:
$ scp .muttrc phablet@ubuntu-phablet:~/myRoot/home/phablet
$ scp -p .mutt-mail_aliases phablet@ubuntu-phablet:~/myRoot/home/phablet
$ scp -rp .elm phablet@ubuntu-phablet:~/myRoot/home/phablet
configure .muttrc for SMTP and IMAP, i.e. the essential changes are
set record=+outboxBQ # save copies of outgoing messages in +outboxBQ
# disable sendmail
# set sendmail="/usr/sbin/sendmail -oi -oem -f guru@xxxxxxxxxxx -t"
# configure IMAP and SMTP as:
set smtp_url="smtp://XXXXXXXXXXXXX@xxxxxxxxxxxx"
set smtp_pass="YYYYYYYYYYYYYYY"
Now we can run mutt as:
$ mutt -f imap://imap.1blu.de
Note: The terminal-app is limited in its permisions to access the file system.
We need to use "ssh localhost" to get full rights into the session (see above
chapter 12).
Start the terminal-app and do:
$ ssh localhost
$ cd myRoot
$ sudo chroot .
# su phablet
$ cd
$ mutt -f imap://imap.1blu.de
So. And now, what about running X11 applications?