4

I can see in the documentation for libertine-container-manager (that's libertine-container-manager -- help) That the exec option should be able to execute an arbitrary command.

I can't however get it to do anything other than spew python warnings at me ( Can't convert NoneType to str ). I have tried the following:

libertine-container-manager exec setxkb dk dvorak
libertine-container-manager exec "setxkb dk dvorak"
libertine-container-manager exec="setxkb dk dvorak"
echo "setxkb dk dvorak" | libertine-container-manager exec

None of these gave the desired result (or anything not resulting in an error really)

I'm on Ubuntu touch on an M10 that is not remounted rw.

fcole90
  • 170
Paul
  • 43
  • exec is undocumented because it is meant as a non-user-visible way to run one-off root commands internally. I would recommend using libertine-launch to launch bash in your container and then execute the commands you need (see Vladimir's answer). – Larry Price Nov 30 '16 at 15:42

2 Answers2

5

Use

libertine-container-manager exec -i container-id -c "setxkb dk dvorak"

or any ways -c "and the command you want to run"

Larry Price
  • 411
  • 3
  • 13
9ler
  • 96
  • That should probably go into the documentation, even if it is just the help file. My next problem now is that setxkb is not installed when running the default setup X( – Paul Apr 26 '16 at 16:49
  • 1
    The answer is using localectl set-x11-keymap dk dvorak However that returns an error. Oh well, using libertine-container-manager exec -c "bash" proved useful – Paul Apr 26 '16 at 17:01
2

As Larry Price answered in there, the preferable way is to use libertine-launch my-container somecmd or libertine-launch --id my-container somecmd for modern distro (16.10) instead of libertine-container-manager exec... See manual for libertine-launch in a Libertine container. Note, that libertine-launch.. and libertine-container-manager exec.. have some difference when binding directories in user environment.

Vladimir
  • 207