Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ virsh list
- Id Name State
- ----------------------------------------------------
- 81 instance-0000010d running
- 82 instance-0000010e running
- 84 instance-00000110 running
- 85 instance-00000111 running
- $ virsh vncdisplay 85
- :9
- $ ss -l |grep -v 127.0.0.1 |grep 590
- LISTEN 0 1 *:5907 *:*
- LISTEN 0 1 *:5908 *:*
- LISTEN 0 1 *:5909 *:*
- $ telnet 192.168.10.140 5909
- Trying 192.168.10.140...
- Connected to 192.168.10.140.
- Escape character is '^]'.
- RFB 003.008
- $ ss |grep 5909
- ESTAB 0 0 192.168.10.140:5909 192.168.10.117:52172
- #!/bin/bash
- yum install pixman pixman-devel libXfont tigervnc-server.x86_64 -y
- cat <<EOF > /etc/sysconfig/vncservers
- VNCSERVERS="6:root"
- VNCSERVERARGS[6]="-geometry 1152x864"
- EOF
- chkconfig vncserver on
- /usr/bin/vncpasswd
- /etc/init.d/vncserver start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement