Linux & Xvfb
Ставим Xvfb на Debian
How to connect to X app via VNC which was by xvfb-run?
$ sudo sh -c 'echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list'
$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
$ sudo apt update
$ sudo apt install virtualbox-6.0
#$ sudo apt autoremove --purge virtualbox-6.0
$ sudo usermod -a -G vboxusers $USER
$ sudo /sbin/vboxconfig
$ sudo reboot
$ sudo apt install xvfb dbus-x11 x11vnc
#$ Xvfb :1 -screen 0 640x480x24 -fbdir /var/tmp &
$ Xvfb :1 -screen 0 1280x1024x24 -fbdir /var/tmp &
$ x11vnc -display :1 -bg -nopw -listen 192.168.1.110 -xkb
$ export DISPLAY=:1.0
$ virtualbox
$ xvfb-run -l --server-args="-screen 0 1024x768x24" virtualbox&
$ ps x | grep Xvfb
2056 pts/0 Sl 0:01 Xvfb :1 -screen 0 1280x1024x24 -fbdir /var/tmp
2179 pts/0 Sl 0:00 Xvfb :99 -screen 0 1024x768x24 -auth /tmp/xvfb-run.c2vfEV/Xauthority
$ xvfb-run -l --server-args=":1 -screen 0 1024x768x24" -f /var/tmp virtualbox&
[1] 1498
$ ps x | grep xvfb
1498 pts/0 S 0:00 /bin/sh /usr/bin/xvfb-run -l --server-args=-screen 0 1024x768x24 -f /var/tmp virtualbox
$ x11vnc -display :1 -bg -nopw -listen 192.168.0.239 -xkb
$ xvfb-run -l --server-args=":1 -screen 0 1024x768x24" -f /var/tmp virtualbox&
user@u1804:~$ xvfb-run -l --server-args=":1 -screen 0 1024x768x24" -f /var/tmp virtualbox&
[1] 1299
user@u1804:~$ ps x | grep xvfb
1299 pts/0 S 0:00 /bin/sh /usr/bin/xvfb-run -l --server-args=:1 -screen 0 1024x768x24 -f /var/tmp virtualbox
Ставим Xvfb на Debian
How to connect to X app via VNC which was by xvfb-run?
$ sudo sh -c 'echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list'
$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
$ sudo apt update
$ sudo apt install virtualbox-6.0
#$ sudo apt autoremove --purge virtualbox-6.0
$ sudo usermod -a -G vboxusers $USER
$ sudo /sbin/vboxconfig
$ sudo reboot
$ sudo apt install xvfb dbus-x11 x11vnc
#$ Xvfb :1 -screen 0 640x480x24 -fbdir /var/tmp &
$ Xvfb :1 -screen 0 1280x1024x24 -fbdir /var/tmp &
$ x11vnc -display :1 -bg -nopw -listen 192.168.1.110 -xkb
$ export DISPLAY=:1.0
$ virtualbox
$ xvfb-run -l --server-args="-screen 0 1024x768x24" virtualbox&
$ ps x | grep Xvfb
2056 pts/0 Sl 0:01 Xvfb :1 -screen 0 1280x1024x24 -fbdir /var/tmp
2179 pts/0 Sl 0:00 Xvfb :99 -screen 0 1024x768x24 -auth /tmp/xvfb-run.c2vfEV/Xauthority
$ xvfb-run -l --server-args=":1 -screen 0 1024x768x24" -f /var/tmp virtualbox&
[1] 1498
$ ps x | grep xvfb
1498 pts/0 S 0:00 /bin/sh /usr/bin/xvfb-run -l --server-args=-screen 0 1024x768x24 -f /var/tmp virtualbox
$ x11vnc -display :1 -bg -nopw -listen 192.168.0.239 -xkb
$ xvfb-run -l --server-args=":1 -screen 0 1024x768x24" -f /var/tmp virtualbox&
user@u1804:~$ xvfb-run -l --server-args=":1 -screen 0 1024x768x24" -f /var/tmp virtualbox&
[1] 1299
user@u1804:~$ ps x | grep xvfb
1299 pts/0 S 0:00 /bin/sh /usr/bin/xvfb-run -l --server-args=:1 -screen 0 1024x768x24 -f /var/tmp virtualbox
XAUTHORITY=
/var/tmp x11vnc
-display :1 -bg -nopw -listen 192.168.0.239 -xkb
$ ls -la /dev | grep vbox
$ sudo apt-get install --reinstall virtualbox-dkms
Комментариев нет:
Отправить комментарий