Add Back sg/pkexec Code
This commit is contained in:
parent
77275693de
commit
118bca3fa5
13
README.md
13
README.md
@ -39,15 +39,10 @@ Minecraft: Pi Edition Modding Project
|
|||||||
Game logs are located in ``/tmp/minecraft-pi``.
|
Game logs are located in ``/tmp/minecraft-pi``.
|
||||||
|
|
||||||
### ``Couldn't connect to Docker daemon at http+docker://localhost - is it running?``
|
### ``Couldn't connect to Docker daemon at http+docker://localhost - is it running?``
|
||||||
- Make Sure Your User Is In The ``docker`` Group
|
Make Sure Docker Is Running:
|
||||||
```sh
|
```sh
|
||||||
sudo usermod -aG docker "$(id -un)"
|
sudo service docker start
|
||||||
```
|
```
|
||||||
Then Log Out And Log Back In
|
|
||||||
- Make Sure Docker Is Running
|
|
||||||
```sh
|
|
||||||
sudo service docker start
|
|
||||||
```
|
|
||||||
|
|
||||||
### ``Error response from daemon: error gathering device information while adding custom device "/dev/dri": no such file or directory``
|
### ``Error response from daemon: error gathering device information while adding custom device "/dev/dri": no such file or directory``
|
||||||
Make sure you are using the correct GPU drivers for your system. If you are using a Raspberry Pi, make sure your GPU driver is set to ``Full KMS`` or ``Fake KMS`` in ``raspi-config``.
|
Make sure you are using the correct GPU drivers for your system. If you are using a Raspberry Pi, make sure your GPU driver is set to ``Full KMS`` or ``Fake KMS`` in ``raspi-config``.
|
||||||
|
7
debian/client/common/usr/bin/minecraft-pi
vendored
7
debian/client/common/usr/bin/minecraft-pi
vendored
@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Esnure User Is In docker Group
|
||||||
|
if ! id -nGz | grep -qzxF 'docker'; then
|
||||||
|
pkexec /usr/sbin/usermod -aG docker "$(id -un)"
|
||||||
|
fi
|
||||||
|
|
||||||
# All Feature Flags
|
# All Feature Flags
|
||||||
export AVAILABLE_FEATURES="$(tr '\n' ' ' < /usr/share/minecraft-pi/client/features)"
|
export AVAILABLE_FEATURES="$(tr '\n' ' ' < /usr/share/minecraft-pi/client/features)"
|
||||||
|
|
||||||
@ -34,7 +39,7 @@ export USER_UID="$(id -u)"
|
|||||||
|
|
||||||
# Run
|
# Run
|
||||||
set +e
|
set +e
|
||||||
/usr/lib/minecraft-pi/pre-launch.sh
|
sg docker /usr/lib/minecraft-pi/pre-launch.sh
|
||||||
RET=$?
|
RET=$?
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
@ -6,8 +6,8 @@ DEB_VERSION='1.0.0'
|
|||||||
# Dependencies
|
# Dependencies
|
||||||
REQUIRED_DOCKER_VERSION='19.03'
|
REQUIRED_DOCKER_VERSION='19.03'
|
||||||
COMMON_DEPENDENCIES="docker.io (>=${REQUIRED_DOCKER_VERSION}) | docker-ce (>=${REQUIRED_DOCKER_VERSION}), libseccomp2 (>=2.4.2), docker-compose, binfmt-support"
|
COMMON_DEPENDENCIES="docker.io (>=${REQUIRED_DOCKER_VERSION}) | docker-ce (>=${REQUIRED_DOCKER_VERSION}), libseccomp2 (>=2.4.2), docker-compose, binfmt-support"
|
||||||
CLIENT_DEPENDENCIES="zenity, x11-xserver-utils"
|
CLIENT_DEPENDENCIES='zenity, x11-xserver-utils, login, policykit-1, passwd'
|
||||||
RECOMMENDED_DEPENDENCIES="qemu-user-static"
|
RECOMMENDED_DEPENDENCIES='qemu-user-static'
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user