Skip to content

Adds chrome #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ RUN apt-get install -y \
software-properties-common \
ca-certificates \
gnupg2 \
apt-transport-https
apt-transport-https \
libcap2-bin \
net-tools \
iproute2 \
bzip2 \
libxslt1.1

# 3. Remove unneeded packages
RUN apt remove -y light-locker xscreensaver || true && \
Expand All @@ -37,15 +42,17 @@ RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor
sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' && \
rm microsoft.gpg && \
apt-get update && \
apt-get install -y code
apt-get install -y code && \
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
apt -y install ./google-chrome-stable_current_amd64.deb && \
wget "https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-GB" -O - | tar jxf - -C /opt

# 5. Install gof5 (F5 VPN client)
RUN wget https://github.com/kayrus/gof5/releases/download/v0.1.4/gof5_linux_amd64 && \
chmod +x gof5_linux_amd64 && \
mv gof5_linux_amd64 /usr/local/bin/gof5

# 6. (Optional) Set capabilities for gof5
RUN apt-get update && apt-get install -y libcap2-bin && rm -rf /var/lib/apt/lists/*
RUN setcap 'cap_net_admin,cap_net_bind_service+ep' /usr/local/bin/gof5

# 7. Clean up apt caches
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ services:
container_name: ubuntu-desktop-f5vpn
cap_add:
- CAP_AUDIT_WRITE
- NET_ADMIN
ports:
- "3389:3389"
- "2222:22"
volumes:
- ubuntu-desktop-f5vpn-home-data:/home

volumes:
ubuntu-desktop-f5vpn-home-data:
ubuntu-desktop-f5vpn-home-data:
16 changes: 10 additions & 6 deletions ubuntu-run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

RDP_GID=${RDP_GID:-9999}
RDP_UID=${RDP_UID:-9999}
RDP_USER=${RDP_USER:-admin}
RDP_PASSWORD=${RDP_USER:-admin}

start_xrdp_services() {
# Preventing xrdp startup failure
Expand Down Expand Up @@ -28,14 +32,14 @@ stop_xrdp_services() {
echo Entryponit script is Running...
echo

addgroup admin
echo "username is admin"
useradd -m -s /bin/bash -g admin admin
addgroup --gid 9999 $RDP_USER
echo "username is $RDP_USER"
useradd -m -u 9999 -s /bin/bash -g $RDP_USER $RDP_USER
wait
#getent passwd | grep foo
echo admin:admin | chpasswd
echo ${RDP_USER}:${RDP_PASSWORD} | chpasswd
wait
usermod -aG sudo admin
usermod -aG sudo $RDP_USER


echo -e "This script is ended\n"
Expand All @@ -46,4 +50,4 @@ start_ssh_services
echo -e "starting xrdp services...\n"

trap "stop_xrdp_services" SIGKILL SIGTERM SIGHUP SIGINT EXIT
start_xrdp_services
start_xrdp_services