← Back to team overview

ubuntu-phone team mailing list archive

Re: Get root access

 


On 13.06.2016 17:12, Rodney Dawes wrote:
> You should not change the root filesystem (/) to read/write mode and
> install things with apt. The partition will fill up quickly as it is
> small, and you will break updates if you do so.
> 
> If you must use some command line tools, you can do so using a simple
> chroot, or by using the newer libertine tools.
> 
> For using a chroot see http://askubuntu.com/a/623311/50737
> This answer will be updated to include the libertine solution, when all
> of the necessary pieces are available directly on all images. However,
> if you are on the M10 tablet, then installing the tools you need inside
> the libertine container and using them from there, is the preferred way
> to do this.

What I did for some tools like qdbus (mc falls into the same category I
suppose) is to just copy the binaries from the deb packages on launchpad
into ~/bin/.

Just to have such small tools around, keeping a whole chroot seems a bit
overkill to me. So I was wondering if it wouldn't be possible to change
dpkg's root to ~ or something so that we could apt-get install some
command line tools easily without a) requiring read-write mode and b) a
full chroot/container.


> 
> 
> 
> On Mon, 2016-06-13 at 17:51 +0300, Николай Шатохин wrote:
>> Hello
>>
>> How to get write permissions to root filesystem. I need to install
>> some utils (like Midnight Commander) using apt-get.
>>
>> Best regards,
>> Nick
>> -- 
>> Mailing list: https://launchpad.net/~ubuntu-phone
>> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>> More help   : https://help.launchpad.net/ListHelp
>>
>>

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References