Skip to content

Commit 845564e

Browse files
squigglyleosabrehagen
authored andcommitted
cursor-cli
1 parent 7d5363e commit 845564e

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

docker/Dockerfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ RUN curl -fsSL -o cursor.appimage https://downloads.cursor.com/production/61e991
218218
sed -iE 's;Exec=.*;Exec=/usr/local/bin/cursor;' /opt/cursor/cursor.desktop && \
219219
rm cursor.appimage
220220

221+
# Install cursor cli
222+
RUN curl https://cursor.com/install -fsS | bash
223+
221224
# Install discord
222225
RUN curl -fsSL -o discord.deb 'https://discordapp.com/api/download?platform=linux&format=deb' && \
223226
dpkg -i discord.deb || apt-get install -qq --fix-broken && \
@@ -383,13 +386,18 @@ RUN curl -fsSL https://nodejs.org/dist/v23.11.0/node-v23.11.0-linux-x64.tar.xz |
383386
RUN git clone --depth 1 https://github.com/cloud-computer/noVNC.git /opt/noVNC && \
384387
git clone --depth 1 https://github.com/novnc/websockify /opt/noVNC/utils/websockify
385388

389+
# Install nvidia driver
390+
RUN apt-get update -qq && \
391+
apt-get install -qq \
392+
nvidia-driver-550
393+
386394
# Install nvidia driver
387395
# RUN apt-get update -qq && \
388396
# apt-get install linux-headers-$(uname -r) && \
389397
# curl -fsSL -o nvidia-driver.run https://us.download.nvidia.com/XFree86/Linux-x86_64/565.77/NVIDIA-Linux-x86_64-565.77.run && \
390398
# chmod +x nvidia-driver.run && \
391399
# ./nvidia-driver.run --allow-installation-with-running-driver --silent && \
392-
# rm nviia-driver.run
400+
# rm nvidia-driver.run
393401

394402
# Install nvidia driver
395403
# RUN apt-get update -qq && \
@@ -600,6 +608,11 @@ RUN sed -i "s;^$USER:[^:]*;$USER:$DESKTOP_ENVIRONMENT_HOST_USER_PASSWORD;" /etc/
600608
# Take ownership of user's home directory and applications
601609
RUN chown -R $USER:$USER $HOME /opt
602610

611+
# Restore file ownership and file mode required for chrome-sandbox binaries
612+
RUN find /opt -type f -name chrome-sandbox \
613+
-exec chown root:root {} \; \
614+
-exec chmod 4755 {} \;
615+
603616
# Become desktop environment user
604617
USER $USER
605618
WORKDIR $HOME

docker/scripts/environment.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ echo export DESKTOP_ENVIRONMENT_CACHE_ZSH=$DESKTOP_ENVIRONMENT_USER_HOME/.cache/
4242
echo export DESKTOP_ENVIRONMENT_STATE_BEEKEEPER=$DESKTOP_ENVIRONMENT_USER_HOME/.config/beekeeper-studio
4343
echo export DESKTOP_ENVIRONMENT_STATE_CHATGPT=$DESKTOP_ENVIRONMENT_USER_HOME/.chatgpt
4444
echo export DESKTOP_ENVIRONMENT_STATE_CLAUDE_CHAT=$DESKTOP_ENVIRONMENT_USER_HOME/.config/claude-nativefier
45-
echo export DESKTOP_ENVIRONMENT_STATE_CLAUDE_CODE=$DESKTOP_ENVIRONMENT_USER_HOME/.config/claude-nativefier
45+
echo export DESKTOP_ENVIRONMENT_STATE_CLAUDE_CODE=$DESKTOP_ENVIRONMENT_USER_HOME/.config/claude
4646
echo export DESKTOP_ENVIRONMENT_STATE_CODE=$DESKTOP_ENVIRONMENT_USER_HOME/.config/Code
47+
echo export DESKTOP_ENVIRONMENT_STATE_CURSOR_CLI=$DESKTOP_ENVIRONMENT_USER_HOME/.config/cursor
4748
echo export DESKTOP_ENVIRONMENT_STATE_CURSOR=$DESKTOP_ENVIRONMENT_USER_HOME/.config/Cursor
4849
echo export DESKTOP_ENVIRONMENT_STATE_DISCORD=$DESKTOP_ENVIRONMENT_USER_HOME/.config/discord
4950
echo export DESKTOP_ENVIRONMENT_STATE_I3=$DESKTOP_ENVIRONMENT_USER_HOME/.config/i3/i3-resurrect

docker/scripts/start.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ docker run \
6565
--volume DESKTOP_ENVIRONMENT_STATE_CLAUDE_CHAT:$DESKTOP_ENVIRONMENT_STATE_CLAUDE_CHAT \
6666
--volume DESKTOP_ENVIRONMENT_STATE_CLAUDE_CODE:$DESKTOP_ENVIRONMENT_STATE_CLAUDE_CODE \
6767
--volume DESKTOP_ENVIRONMENT_STATE_CODE:$DESKTOP_ENVIRONMENT_STATE_CODE \
68+
--volume DESKTOP_ENVIRONMENT_STATE_CURSOR_CLI:$DESKTOP_ENVIRONMENT_STATE_CURSOR_CLI \
6869
--volume DESKTOP_ENVIRONMENT_STATE_CURSOR:$DESKTOP_ENVIRONMENT_STATE_CURSOR \
6970
--volume DESKTOP_ENVIRONMENT_STATE_DISCORD:$DESKTOP_ENVIRONMENT_STATE_DISCORD \
7071
--volume DESKTOP_ENVIRONMENT_STATE_I3:$DESKTOP_ENVIRONMENT_STATE_I3 \

0 commit comments

Comments
 (0)