SHARE
TWEET

Untitled

a guest Jun 16th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ virsh list
  2.  Id    Name                           State
  3. ----------------------------------------------------
  4.   81    instance-0000010d              running
  5.  82    instance-0000010e              running
  6.  84    instance-00000110              running
  7.  85    instance-00000111              running
  8.      
  9. $ virsh vncdisplay 85
  10. :9
  11.      
  12. $ ss -l |grep -v 127.0.0.1 |grep 590
  13. LISTEN     0      1                       *:5907                     *:*      
  14. LISTEN     0      1                       *:5908                     *:*      
  15. LISTEN     0      1                       *:5909                     *:*
  16.      
  17. $ telnet 192.168.10.140 5909
  18. Trying 192.168.10.140...
  19. Connected to 192.168.10.140.
  20. Escape character is '^]'.
  21. RFB 003.008
  22.      
  23. $ ss |grep 5909
  24. ESTAB      0      0          192.168.10.140:5909        192.168.10.117:52172
  25.      
  26. #!/bin/bash
  27. yum install pixman pixman-devel libXfont tigervnc-server.x86_64 -y
  28. cat <<EOF > /etc/sysconfig/vncservers
  29. VNCSERVERS="6:root"
  30. VNCSERVERARGS[6]="-geometry 1152x864"
  31. EOF
  32. chkconfig vncserver on
  33. /usr/bin/vncpasswd
  34. /etc/init.d/vncserver start
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top