Skip to content

Commit

Permalink
Support CentOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ning committed Jan 12, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 05ad467 commit 9494676
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile.centos
Original file line number Diff line number Diff line change
@@ -35,6 +35,12 @@ COPY google-chrome.repo /etc/yum.repos.d/
RUN yum install -y --skip-broken google-chrome-stable
# echo 'export LD_LIBRARY_PATH=/opt/glibc-2.28/lib:$LD_LIBRARY_PATH' >> /etc/profile.d/chrome-libs.sh

# Create cursor user
RUN useradd -m -s /bin/bash cursor && \
echo "cursor ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
echo "cursor:cursor" | chpasswd && \
usermod -aG wheel cursor

# Download and install Cursor
RUN wget -O /tmp/cursor.app https://downloader.cursor.sh/linux && \
chmod +x /tmp/cursor.app && \
@@ -102,12 +108,6 @@ RUN mkdir -p /etc/X11/xrdp && \
chown -R cursor:cursor /etc/X11/xrdp && \
chmod 2775 /etc/X11/xrdp

# Create cursor user
RUN useradd -m -s /bin/bash cursor && \
echo "cursor ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
echo "cursor:cursor" | chpasswd && \
usermod -aG wheel cursor

# Configure XFCE session
RUN echo "startxfce4" > /home/cursor/.Xclients && \
chmod +x /home/cursor/.Xclients && \

0 comments on commit 9494676

Please sign in to comment.