2024-06-20 18:52:12 +00:00
|
|
|
FROM ubuntu:22.04
|
|
|
|
MAINTAINER Rene V. Vergara A. <rvergara59@kprotonmail.com>
|
|
|
|
|
|
|
|
RUN apt update
|
|
|
|
|
2024-06-21 15:28:40 +00:00
|
|
|
# Set environment variables to non-interactive mode for installation
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
# Update the package list and install necessary packages
|
2024-06-23 13:32:23 +00:00
|
|
|
RUN apt-get install -y \
|
2024-06-21 15:28:40 +00:00
|
|
|
xfce4 \
|
|
|
|
xfce4-goodies \
|
2024-06-23 13:32:23 +00:00
|
|
|
tigervnc-standalone-server \
|
2024-06-24 02:14:29 +00:00
|
|
|
dbus-x11 \
|
2024-06-23 13:32:23 +00:00
|
|
|
xfonts-base \
|
|
|
|
xterm \
|
|
|
|
wget
|
2024-06-21 15:28:40 +00:00
|
|
|
|
|
|
|
RUN apt-get install -y \
|
|
|
|
libxss-dev \
|
|
|
|
libxrandr-dev \
|
2024-06-23 13:32:23 +00:00
|
|
|
libsecp256k1-dev \
|
|
|
|
xclip \
|
|
|
|
libglew-dev \
|
|
|
|
libsdl2-dev
|
2024-06-21 15:28:40 +00:00
|
|
|
|
|
|
|
RUN apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2024-06-20 18:52:12 +00:00
|
|
|
|
2024-06-24 02:14:29 +00:00
|
|
|
|
2024-06-23 13:32:23 +00:00
|
|
|
# Create a new user (e.g., "zenusr") and set a password
|
|
|
|
RUN useradd -ms /bin/bash zenusr
|
|
|
|
RUN echo "1234\n1234\n" | passwd zenusr
|
|
|
|
RUN usermod -aG sudo zenusr
|
|
|
|
|
2024-06-24 02:14:29 +00:00
|
|
|
# Create an.Xauthority file
|
|
|
|
RUN touch /home/zenusr/.Xauthority
|
|
|
|
RUN chown zenusr:zenusr /home/zenusr/.Xauthority
|
|
|
|
|
2024-06-23 13:32:23 +00:00
|
|
|
# Configure VNC server
|
|
|
|
RUN mkdir -p /home/zenusr/.vnc
|
|
|
|
RUN echo "vnc1234" | vncpasswd -f > /home/zenusr/.vnc/passwd
|
|
|
|
RUN chmod 600 /home/zenusr/.vnc/passwd
|
|
|
|
|
|
|
|
# Create startup script for VNC seriver
|
2024-06-24 02:14:29 +00:00
|
|
|
RUN echo '#!/bin/bash\nxrdb /home/zenusr/.Xresources\nstartxfce4 &' > /home/zenusr/.vnc/xstartup
|
2024-06-23 13:32:23 +00:00
|
|
|
RUN chmod +x /home/zenusr/.vnc/xstartup
|
|
|
|
RUN chown zenusr:zenusr -R /home/zenusr/.vnc
|
2024-06-20 18:52:12 +00:00
|
|
|
|
2024-06-24 02:14:29 +00:00
|
|
|
RUN mkdir /home/zenusr/assets
|
|
|
|
COPY assets/* /home/zenusr/assets/
|
|
|
|
RUN chown zenusr:zenusr -R /home/zenusr/assets
|
|
|
|
|
2024-06-20 18:52:12 +00:00
|
|
|
COPY bash_rc_adm /root/.bashrc
|
|
|
|
COPY bash_rc_usr /home/zenusr/.bashrc
|
|
|
|
COPY zenith /usr/local/bin
|
|
|
|
COPY librustzcash_wrapper.so /usr/local/lib
|
|
|
|
COPY sapling-spend.params /usr/local/lib
|
|
|
|
COPY sapling-output.params /usr/local/lib
|
2024-06-23 13:32:23 +00:00
|
|
|
COPY libc-bin_2.38-1ubuntu6_amd64.deb /home/zenusr/Downloads/
|
|
|
|
COPY libc-dev-bin_2.38-1ubuntu6_amd64.deb /home/zenusr/Downloads/
|
|
|
|
COPY libc6_2.38-1ubuntu6_amd64.deb /home/zenusr/Downloads/
|
|
|
|
|
2024-06-24 02:14:29 +00:00
|
|
|
RUN echo '#!/bin/bash\ncd /home/zenusr/Downloads\ndpkg -i libc6_2.38-1ubuntu6_amd64.deb libc-bin_2.38-1ubuntu6_amd64.deb libc-dev-bin_2.38-1ubuntu6_amd64.deb' > /usr/local/bin/updlibc
|
2024-06-23 13:32:23 +00:00
|
|
|
RUN chmod +x /usr/local/bin/updlibc
|
|
|
|
RUN updlibc
|
|
|
|
|
2024-06-24 02:14:29 +00:00
|
|
|
RUN echo '#!/bin/bash\nvncserver -geometry 1360x768 -depth 24 -SendCutText' > /usr/local/bin/startvnc
|
2024-06-23 13:32:23 +00:00
|
|
|
RUN chmod +x /usr/local/bin/startvnc
|
|
|
|
|
|
|
|
# Set the user to "zenusr"
|
2024-06-24 02:14:29 +00:00
|
|
|
#USER zenusr
|
2024-06-23 13:32:23 +00:00
|
|
|
WORKDIR /home/zenusr
|
|
|
|
ENV USER=zenusr
|
|
|
|
|
2024-06-20 18:52:12 +00:00
|
|
|
|
|
|
|
CMD ["/bin/bash"]
|