Skip to content

How do i change the Desktop Environment #108

@xceejay

Description

@xceejay

Whenever i change the desktop environment to Budgie, it just returns a blank screen when connecting in electron

FROM ubuntu:22.04

# Environment variables
ENV \
    DEBIAN_FRONTEND=noninteractive \
    DEBIAN_PRIORITY=high \
    PIP_DEFAULT_TIMEOUT=100 \
    PIP_DISABLE_PIP_VERSION_CHECK=1 \
    PIP_NO_CACHE_DIR=1

# Desktop environment
RUN yes | unminimize && \
    apt-get update && \
    # X server
    apt-get install -y xserver-xorg xorg x11-xserver-utils xvfb x11-utils xauth && \
    # Budgie desktop and required session components
    apt-get install -y \
        budgie-desktop \
        budgie-core \
        budgie-desktop-environment \
        gnome-session-bin \
        gnome-settings-daemon \
        policykit-1-gnome \
        mutter && \
    # Essential tools
    apt-get install -y util-linux sudo curl git wget python3-pip && \
    # Desktop SDK utilities
    apt-get install -y xdotool scrot ffmpeg

# Streaming server
RUN apt-get install -y x11vnc net-tools netcat && \
    git clone --branch e2b-desktop https://github.com/e2b-dev/noVNC.git /opt/noVNC && \
    ln -s /opt/noVNC/vnc.html /opt/noVNC/index.html && \
    pip install numpy && \
    git clone --branch v0.12.0 https://github.com/novnc/websockify /opt/noVNC/utils/websockify

# Set the default terminal for Budgie
RUN apt-get install -y gnome-terminal && \
    ln -sf /usr/bin/gnome-terminal /etc/alternatives/x-terminal-emulator

# Install standard apps
RUN apt-get install -y x11-apps \
    libreoffice \
    xpdf \
    gedit \
    xpaint \
    tint2 \
    galculator \
    pcmanfm

# Install Firefox
RUN apt-get install -y software-properties-common && \
    add-apt-repository ppa:mozillateam/ppa && \
    apt-get install -y --no-install-recommends firefox-esr

# Install Chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
    echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \
    apt-get update && \
    apt-get install -y google-chrome-stable

# Set Firefox as default browser
RUN update-alternatives --set x-www-browser /usr/bin/firefox-esr

# Copy Chrome desktop shortcut
COPY google-chrome.desktop /usr/share/applications/google-chrome.desktop

# Install VS Code
RUN apt-get install -y apt-transport-https && \
    wget -qO- https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
    add-apt-repository -y "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" && \
    apt-get update && \
    apt-get install -y code
RUN mkdir -p /home/user/.config/Code/User
COPY ./settings.json /home/user/.config/Code/User/settings.json

# Set up X session for Budgie
RUN echo 'export XDG_CURRENT_DESKTOP=Budgie:GNOME' >> /home/user/.xinitrc && \
    echo 'exec budgie-desktop' >> /home/user/.xinitrc

# Install gtk-launch and update desktop database
RUN apt-get install -y libgtk-3-bin && \
    update-desktop-database /usr/share/applications/

# Firefox enterprise policies
COPY firefox-policies.json /usr/lib/firefox-esr/distribution/policies.json
COPY firefox-autoconfig.js /usr/lib/firefox-esr/defaults/pref/autoconfig.js
COPY firefox.cfg /usr/lib/firefox-esr/firefox.cfg

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions