Compare commits

..

15 Commits

Author SHA1 Message Date
2a0bf7b12e new pic - x11vnc 2022-11-10 11:06:36 +05:00
e81096c0a1 correct some workds - x11vnc 2022-11-10 11:03:38 +05:00
9ba8deb6d4 an attempt to add image - x11vnc 2022-11-10 11:00:04 +05:00
b0c9da68c3 Get ready info - x11vnc 2022-11-10 10:24:36 +05:00
ca0a4a6e78 Get ready - x11vnc 2022-11-10 10:18:06 +05:00
21364ee8ad fix caps - x11vnc 2022-11-10 10:10:35 +05:00
99d125ddc4 desc 1 - x11vnc 2022-11-10 10:09:36 +05:00
1d646a2945 readme test titile - x11vnc 2022-11-10 10:08:11 +05:00
b5ea01a380 some fixes to x11vnc 2022-11-10 08:57:01 +05:00
729f2ea8ea some fixes 2022-11-10 08:52:53 +05:00
3d660fa797 .00 2022-11-09 15:29:26 +05:00
336fccdaaa x_ 2022-11-09 15:28:13 +05:00
adf91b6ca7 clip 2022-11-09 15:24:38 +05:00
801ea06083 -p 2022-11-09 15:22:28 +05:00
157ea8d696 vnc-extended display.sh 2022-11-09 15:11:42 +05:00
4 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# Use another device as an auxiliary display for a xorg GNU/Linux
With x11vnc, you can use your another device as a display that extends or mirrors your xorg GNU/Linux desktop.
![extended-pic.jpg](img/extended-pic.jpg)
## Get ready.
- Before continuing, Make sure that your GNU/Linux system is running X Display server and connected to the same network.
- You can use x11vnc wirelessly, but to keep connection stable, Connect your another device to wired network other either by Ethernet or USB Tethering.
If you dont want to use other deivce keyboard, mouse or trackpad to control your GNU/Linux system you can enable view only mode in VNC settings.
![arandr-ss.png](img/arandr-ss.png)

View File

@@ -0,0 +1,46 @@
#!/bin/bash
dependency_check(){
for DEPENDENCY; do
if ! command -v "$DEPENDENCY" 1>/dev/null; then
printf "%s not found. Please install it.\n" "$DEPENDENCY" >&2
exit 2
fi
done
unset DEPENDENCY
}
dependency_check arandr x11vnc xrandr gtf
read -p 'Enter client width: ' CLIENT_WIDTH
read -p 'Enter client heigh: ' CLEINT_HEIGHT
read -p 'Enter client refresh rate: ' REFRESH_RATE
MODELINE=$(gtf $CLIENT_WIDTH $CLEINT_HEIGHT $REFRESH_RATE | grep Modeline | sed 's/Modeline//') #resolution of client machine (width, height, refreshrate)
RESOLUTION=$(echo $MODELINE | awk '{print $1}')
echo "---------------"
echo $MODELINE
echo "---------------"
read -p 'enter the above Modeline: ' MODELINE
xrandr --newmode $MODELINE
echo Checking avaible ports..
echo "---------------"
xrandr | grep disconnected | awk '{print $1}'
echo "---------------"
read -p 'Enter one of the ports to be used for VNC: ' PORT
echo Adding new display
xrandr --addmode $PORT $RESOLUTION
sleep 2
echo Activating new display
sleep 2
xrandr --output $PORT --mode $RESOLUTION
echo "---------------"
echo Configure the new diplay where you want
echo "---------------"
sleep 3
arandr >> /dev/null
GEO=$(xrandr | grep $PORT | awk '{print $3}')
echo Starting VNC Server
sleep 3
x11vnc -clip $GEO

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB