Home Operation and Maintenance Linux Operation and Maintenance TigerVNC share file method on Debian

TigerVNC share file method on Debian

Apr 13, 2025 am 11:45 AM
red

TigerVNC share file method on Debian

This article describes how to use TigerVNC to share files on Debian systems. You need to install the TigerVNC server first and then configure it.

1. Install TigerVNC server

  1. Open the terminal.
  2. Update the package list: sudo apt update
  3. Install TigerVNC server: sudo apt install tigervnc-standalone-server tigervnc-common

2. Configure the TigerVNC server

  1. Set VNC server password: vncpasswd
  2. Start the VNC server: vncserver :1 -localhost no -geometry 1920x1080 (:1 means that the server will run on display port 5901.)

3. Enable file sharing

  1. Edit the VNC server startup script ~/.vnc/xstartup and add the following to enable file sharing (please note that this method may not be applicable to all desktop environments and needs to be adjusted according to actual conditions):
 #!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
# Add the following line to start the file manager thunar & # or other file managers such as nautilus
gnome-terminal &
dbus-launch --exit-with-session
gnome-session &
Copy after login
  1. Set file sharing directory permissions to ensure that the VNC server is accessible: chmod -R 777 /path/to/your/shared/directory (replace /path/to/your/shared/directory with the actual shared directory path). Note: Using chmod 777 will give all users full permissions. For security reasons, it is recommended to adjust the permission settings according to actual needs.

4. Connect to TigerVNC server

  1. Download and install VNC client software (such as RealVNC Viewer).
  2. Use the IP address and port of the client to connect to the server (for example: 5901).
  3. Enter the password you set before to connect.

After completing the above steps, you can share files on the Debian system through TigerVNC. Make sure your firewall allows VNC connection ports (the default port is 5900 plus the monitor number). If you encounter problems, check the firewall settings as well as the VNC server log.

The above is the detailed content of TigerVNC share file method on Debian. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to merge array elements with the same ID into one object using JavaScript? How to merge array elements with the same ID into one object using JavaScript? Apr 04, 2025 pm 05:09 PM

How to merge array elements with the same ID into one object in JavaScript? When processing data, we often encounter the need to have the same ID...

The difference in console.log output result: Why are the two calls different? The difference in console.log output result: Why are the two calls different? Apr 04, 2025 pm 05:12 PM

In-depth discussion of the root causes of the difference in console.log output. This article will analyze the differences in the output results of console.log function in a piece of code and explain the reasons behind it. �...

How to implement adaptive layout of Y-axis position in web annotation? How to implement adaptive layout of Y-axis position in web annotation? Apr 04, 2025 pm 11:30 PM

The Y-axis position adaptive algorithm for web annotation function This article will explore how to implement annotation functions similar to Word documents, especially how to deal with the interval between annotations...

How to solve the problem of grandfather's background obstructing pseudo-elements when text gradient adds shadows? How to solve the problem of grandfather's background obstructing pseudo-elements when text gradient adds shadows? Apr 05, 2025 pm 05:36 PM

When adding shadows to text gradients, the solution to the grandfather background blocks pseudo-elements. When adding shadows to text gradients, pseudo-elements and absolute positioning are usually used to...

How to accurately realize the small label effect in the design draft on the mobile terminal? How to accurately realize the small label effect in the design draft on the mobile terminal? Apr 04, 2025 pm 11:36 PM

How to achieve the effect of small labels in the design draft on the mobile terminal? When designing mobile applications, it is common to find out how to accurately restore the small label effect in the design draft...

How to select and style elements of the first specific class using CSS and JavaScript? How to select and style elements of the first specific class using CSS and JavaScript? Apr 04, 2025 pm 11:33 PM

How to select and style elements of the first specific class using CSS and JavaScript? In web development, you often encounter the need to select and modify specific classes...

How does the Ant Design calendar component modify only the current component to make Sunday appear in the first column? How does the Ant Design calendar component modify only the current component to make Sunday appear in the first column? Apr 05, 2025 pm 08:12 PM

AntDesign Calendar component first column shows Sunday's solution in Calendar using AntDesign...

See all articles