Skip to content
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

COPY PASTE NOT WORKING #1915

Open
prasaanth2k opened this issue Nov 22, 2024 · 0 comments
Open

COPY PASTE NOT WORKING #1915

prasaanth2k opened this issue Nov 22, 2024 · 0 comments

Comments

@prasaanth2k
Copy link

  • noVNC version: latest version
  • VNC server: tightvncserver
  • WebSocket proxy: [e.g. websockify]

when i copy and content from the server it was not copy to frontend clipboard

Screenshot from 2024-11-22 18-39-29

when i try to past the content clipboard it not sending to the vnc
Screenshot from 2024-11-22 18-40-18

i was using docker based vnc

FROM ubuntu:22.04

# Set noninteractive environment for apt
ENV DEBIAN_FRONTEND=noninteractive
ENV USER=root

# Install basic tools, desktop environment, and noVNC
RUN apt-get update && apt-get install -y \
    xubuntu-desktop \
    tightvncserver \
    novnc \
    websockify \
    xfce4-terminal \
    fonts-dejavu \
    arc-theme \
    papirus-icon-theme \
    xdotool xclip x11vnc \
    && apt-get clean

# Set up VNC server and password
RUN mkdir -p ~/.vnc \
    && echo "password" | vncpasswd -f > ~/.vnc/passwd \
    && chmod 600 ~/.vnc/passwd
RUN rm -rf /usr/share/novnc

COPY novnc /usr/share/novnc
# Copy the custom xstartup file to configure XFCE
COPY xstartup /root/.vnc/xstartup
RUN chmod +x /root/.vnc/xstartup

# Set up noVNC
RUN mkdir -p /root/noVNC \
    && ln -s /usr/share/novnc/vnc.html /root/noVNC/index.html

# Expose necessary ports
EXPOSE 5901 80

# Set default geometry for the VNC server
ENV GEOMETRY=1920x1080

# Command to run VNC server and noVNC server with clipboard support
CMD ["bash", "-c", "vncserver :1 -geometry $GEOMETRY && websockify --web=/usr/share/novnc/ --wrap-mode=ignore 80 localhost:5901"]

This is my folder strcture
image

this is the xstartup file
image

Bascally i was cloned the repo and customzing with that for my own but iam stuck with this clipboard issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant