select x11vnc port
时间: 2023-10-24 09:30:30 浏览: 40
To select a port for x11vnc, you can use the "-rfbport" option followed by the desired port number when starting the x11vnc server. For example, if you want to use port 5900, you can run the following command:
```
x11vnc -rfbport 5900
```
This will start x11vnc on port 5900. Make sure the selected port is not already in use by another service.
相关问题
uos安装x11vnc
在UOS系统中安装x11vnc服务的步骤如下:
1. 更新系统:
```
sudo apt-get update
```
2. 安装x11vnc:
```
sudo apt-get install x11vnc -y
```
3. 设置VNC连接密码:
```
sudo x11vnc -storepasswd /etc/x11vnc.pass
```
注意:以上三个步骤是安装x11vnc服务的基本步骤,但是在UOS系统中安装完x11vnc软件包后并不会产生x11vnc.service文件。因此,需要手动创建x11vnc.service文件并设置服务。
4. 创建x11vnc.service文件:
```
sudo cat <<EOF >/lib/systemd/system/x11vnc.service
[Unit]
Description=Start x11vnc at startup
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared -ultrafilexfer -bg -o /var/log/x11vnc.log
ExecStop=/usr/bin/killall x11vnc
[Install]
WantedBy=multi-user.target
EOF
```
5. 启动x11vnc服务:
```
sudo systemctl daemon-reload
sudo systemctl enable x11vnc.service
sudo systemctl start x11vnc.service
```
以上步骤完成后,x11vnc服务就已经安装并启动了。可以使用VNC客户端连接到UOS系统的远程桌面。
archlinux x11vnc
To install and use x11vnc on Arch Linux, you can follow these steps:
1. Install x11vnc: Open a terminal and run the following command:
```
sudo pacman -S x11vnc
```
2. Generate a password file: Run the following command to generate a password file for x11vnc:
```
x11vnc -storepasswd
```
This will prompt you to enter a password for x11vnc and save it to a file.
3. Start x11vnc: Run the following command to start x11vnc:
```
x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /path/to/password-file -rfbport 5900 -shared
```
Replace `/path/to/password-file` with the path to the password file that you generated in step 2. This will start x11vnc and allow remote connections to your screen.
4. Connect to x11vnc: You can now connect to x11vnc from another computer on your network using a VNC client. Enter the IP address of your Arch Linux machine and port number 5900 to connect.
Note: Make sure to configure your firewall to allow incoming connections to port 5900 if necessary.