summaryrefslogtreecommitdiff
path: root/docker/debian/run-docker-for-bitmask.sh
blob: 9ffb400b9d45c49c24d8e04f9043641463535361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# NOTE: to get X11 socket forwarding to work we need this
xhost local:root

docker run --rm -it \
    --net host \
    --privileged \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e DISPLAY=unix$DISPLAY \
    -v `pwd`:/host/ \
    -p 1984:1984 -p 2013:2013 \
    ubuntu:vivid bash

# NOTE: what to do next?
# Install bitmask package:
# $ apt-bitmask.sh stable
# Install polkit agent (bitmask needs it):
# $ apt-get install lxpolkit
# Run polkit in background:
# $ lxpolkit &  # this will show you a message like: 'No session for pid 5801', ignore it
# Run bitmask:
# $ bitmask -d