Skip to content

Commit 24b580c

Browse files
add "kali-linux-default"
1 parent aab6570 commit 24b580c

File tree

1 file changed

+5
-89
lines changed

1 file changed

+5
-89
lines changed

Dockerfile

+5-89
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,10 @@
1-
FROM kalilinux/kali-rolling AS builder
2-
MAINTAINER Daniel Guerra
1+
FROM ghcr.io/lizenzfass78851/ubuntu-xrdp:kali-light
32

4-
# Install packages
5-
6-
ENV DEBIAN_FRONTEND=noninteractive
7-
ARG DEBIAN_VERSION_FOR_MIRORR="bookworm"
8-
RUN echo "deb-src http://http.kali.org/kali kali-rolling main non-free contrib" | tee -a /etc/apt/sources.list
9-
RUN echo "deb http://ftp.debian.org/debian $DEBIAN_VERSION_FOR_MIRORR main" >> /etc/apt/sources.list.d/debian-$DEBIAN_VERSION_FOR_MIRORR.list
10-
RUN apt-get -y update && apt-get -yy dist-upgrade
11-
ENV BUILD_DEPS="git autoconf pkg-config libssl-dev libpam0g-dev \
12-
libx11-dev libxfixes-dev libxrandr-dev nasm xsltproc flex \
13-
bison libxml2-dev dpkg-dev libcap-dev libxkbfile-dev"
14-
ENV BUILD_DEPS2="liblirc-dev"
15-
RUN apt-get -yy install sudo apt-utils software-properties-common $BUILD_DEPS $BUILD_DEPS2
16-
17-
18-
# Build xrdp
19-
20-
WORKDIR /tmp
21-
RUN apt-get source pulseaudio
22-
RUN apt-get build-dep -yy pulseaudio
23-
RUN mv /tmp/pulseaudio-* /tmp/pulseaudio-11.1
24-
WORKDIR /tmp/pulseaudio-11.1
25-
RUN dpkg-buildpackage -rfakeroot -uc -b
26-
WORKDIR /tmp
27-
RUN git clone --branch devel --recursive https://github.com/neutrinolabs/xrdp.git
28-
WORKDIR /tmp/xrdp
29-
RUN ./bootstrap
30-
RUN ./configure
31-
RUN make
32-
RUN make install
33-
WORKDIR /tmp
34-
RUN apt -yy install libpulse-dev
35-
RUN git clone --recursive https://github.com/neutrinolabs/pulseaudio-module-xrdp.git
36-
WORKDIR /tmp/pulseaudio-module-xrdp
37-
RUN ./bootstrap && ./configure PULSE_DIR=/tmp/pulseaudio-11.1
38-
RUN make
39-
RUN mkdir -p /tmp/so
40-
RUN cp src/.libs/*.so /tmp/so
41-
42-
FROM kalilinux/kali-rolling
43-
ARG ADDITIONAL_PACKAGES=""
44-
ENV ADDITIONAL_PACKAGES=${ADDITIONAL_PACKAGES}
45-
ENV TZ="Etc/UTC"
46-
ENV DEBIAN_FRONTEND=noninteractive
47-
COPY --from=builder /etc/apt/sources.list.d/debian*.list /etc/apt/sources.list.d/
48-
RUN apt update && apt -y dist-upgrade && apt install -y \
49-
ca-certificates \
50-
crudini \
51-
dbus-x11 \
52-
kali-desktop-xfce \
53-
less \
54-
locales \
55-
openssh-server \
56-
pulseaudio \
57-
sudo \
58-
supervisor \
59-
uuid-runtime \
60-
vim \
61-
wget \
62-
xauth \
63-
xautolock \
64-
xorgxrdp \
65-
xprintidle \
66-
xrdp \
67-
tzdata \
68-
$ADDITIONAL_PACKAGES && \
69-
apt-get remove -y light-locker xscreensaver && \
3+
RUN apt update && apt dist-upgrade -yy && \
4+
apt install -y \
5+
kali-linux-default && \
706
apt-get autoremove -yy && \
71-
rm -rf /var/cache/apt /var/lib/apt/lists && \
72-
mkdir -p /var/lib/xrdp-pulseaudio-installer
73-
COPY --from=builder /tmp/so/module-xrdp-source.so /var/lib/xrdp-pulseaudio-installer
74-
COPY --from=builder /tmp/so/module-xrdp-sink.so /var/lib/xrdp-pulseaudio-installer
75-
ADD bin /usr/bin
76-
ADD etc /etc
77-
ADD autostart /etc/xdg/autostart
78-
79-
# Configure
80-
RUN if [ ! -d "/var/run/dbus" ]; then mkdir /var/run/dbus; fi
81-
RUN cp /etc/X11/xrdp/xorg.conf /etc/X11 && \
82-
sed -i "s/console/anybody/g" /etc/X11/Xwrapper.config && \
83-
sed -i "s/xrdp\/xorg/xorg/g" /etc/xrdp/sesman.ini && \
84-
locale-gen en_US.UTF-8 && \
85-
echo "#!/bin/sh" > /usr/bin/start-pulseaudio-x11 && \
86-
echo "pulseaudio -D --enable-memfd=True" >> /usr/bin/start-pulseaudio-x11 && \
87-
echo "xfce4-session" >> /etc/skel/.Xclients && \
88-
cp -r /etc/ssh /ssh_orig && \
89-
rm -rf /etc/ssh/* && \
90-
rm -rf /etc/xrdp/rsakeys.ini /etc/xrdp/*.pem && \
91-
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
7+
rm -rf /var/cache/apt /var/lib/apt/lists
928

939
# Docker config
9410
VOLUME ["/etc/ssh","/home"]

0 commit comments

Comments
 (0)