Ubuntu Pastebin

Paste from Tim at Mon, 14 Mar 2016 13:30:16 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
lxd investigation
read later for usb support: https://github.com/lxc/lxd/issues/1359
mount homedir inside container: http://pastebin.ubuntu.com/15280878/

install lxd:
$ sudo apt install lxd
(below assume that the user is in lxd group)

list images:
$lxc image list
shows no images.

$lxc remote add images images.linuxcontainers.org
$ lxc image list images:
$ lxc init images:ubuntu/xenial/amd64 xenial-test
$ lxc start xenial-test
$ lxc exec xenial-test passwd ubuntu
$ lxc exec xenial-test su - ubuntu

$$ sudo apt update
$$ sudo apt dist-upgrade
$$ sudo apt install x11-apps

To get access to the display, you need:
$ lxc config device add xenial-test dri disk source=/dev/dri path=/dev/dri
$ lxc config device add xenial-test x11tmp disk source=/tmp/.X11-unix path=/tmp/.X11-unix

$$ DISPLAY=:0 xeyes
\o/

$$ sudo apt-install quassel-client &


$$ sudo apt install mesa-utils
$$ DISPLAY=:0 glxgears


for installing i386 packages (wine):
$$ dpkg --add-architecture i386 && apt-get update && apt install wine


remote images:
$ lxc image list images:
I don't know how to copy an image without creating the container, so do it like this:
$ lxc init images:ubuntu/vivid/amd64 vivid-overlay

configure display access
(same as above)

for add-apt-repository:
$# apt add software-properties-common
$# add-apt-repository ppa:ci-train-ppa-service/stable-phone-overlay
$# sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
$# apt update && apt upgrade
$# apt install ubuntu-sdk-dev
$# apt install ubuntu-sdk
$# apt install qt5-default
$# apt install qbzr
uncomment the deb-src in /etc/apt/sources.list.d/*
$# apt-get build-dep ubuntu-ui-toolkit
Download as text