mirror of
https://github.com/kingomarnajjar/desktop-environment.git
synced 2026-07-27 19:42:43 +10:00
dns
This commit is contained in:
parent
2aac824d55
commit
41e536d2d1
2 changed files with 1 additions and 6 deletions
|
|
@ -286,9 +286,6 @@ RUN wget -O zoom.deb -nv https://zoom.us/client/latest/zoom_amd64.deb && \
|
|||
dpkg -i zoom.deb || apt-get install -qq --fix-broken && \
|
||||
rm zoom.deb
|
||||
|
||||
# Configure dns to use cloudflare
|
||||
RUN echo "prepend domain-name-servers 1.1.1.1" >> /etc/dhcp/dhclient.conf
|
||||
|
||||
# Configure openvpn
|
||||
RUN mkdir -p $HOME/.config/openvpn && \
|
||||
mknod $HOME/.config/openvpn/tun c 10 200 && \
|
||||
|
|
@ -300,9 +297,6 @@ RUN mkdir -p $HOME/.config/openvpn && \
|
|||
# Configure password-less sudo for the sudo group
|
||||
RUN echo "%sudo ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers
|
||||
|
||||
# Configure udev rules
|
||||
RUN echo 'ACTION=="change", KERNEL=="card0", SUBSYSTEM=="drm", RUN+="/usr/bin/autorandr --change --batch"' > /etc/udev/rules.d/95-monitor-switch.rules
|
||||
|
||||
# Configure X11 permissions
|
||||
RUN sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config && \
|
||||
echo needs_root_rights=yes >> /etc/X11/Xwrapper.config && \
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ docker run \
|
|||
--device /dev/snd \
|
||||
--device /dev/tty1 \
|
||||
--device /dev/video0 \
|
||||
--dns 1.1.1.1 \
|
||||
--env DESKTOP_ENVIRONMENT_USER \
|
||||
--env DISPLAY=:0 \
|
||||
--group-add audio \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue