linux:install_tigervnc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:install_tigervnc [2020/08/31 06:30] – external edit 127.0.0.1 | linux:install_tigervnc [2022/11/23 12:49] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======Install TigerVNC====== | + | ====== |
| - | This page shows how to install a VNC server on a CentOS 6.4 64-bit machine so that you can connect to it from a desktop using a VNC client. | + | ===== Install |
| - | =====Prerequisites===== | + | < |
| - | You must have a CentOS machine already set up in accordance with the the "[[Install | + | < |
| - | =====Install VNC===== | + | |
| - | Install prerequisite software as well as the tigervnc-server package< | + | |
| - | Configure VNC server to start automatically on boot.< | + | |
| - | =====Configure User===== | + | |
| - | Replace USERNAME with the name of the user account you want to grant VNC access to. Pick any password. | + | |
| - | < | + | |
| - | vncpasswd | + | |
| - | exit</ | + | |
| - | Configure the resolution to have when connecting as this user. Replace USER with the name of the user account you want to grant VNC access to. | + | |
| - | < | + | |
| - | VNCSERVERS=" | + | |
| - | VNCSERVERARGS[1]=" | + | |
| - | EOF | + | |
| - | service vncserver restart</ | + | |
| - | =Configure Firewall= | + | |
| - | Port 5901 is the port the VNC clients access. Port 5801 is a web server | + | |
| - | < | + | |
| - | iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT | + | |
| - | service iptables save | + | |
| - | service iptables restart</ | + | |
| - | =====Configure View Only===== | + | As the target user, set the VNC password |
| - | Sometimes you want people to connect and view the desktop but not be able to edit it. (Thinking of the web page specifically here). | + | < |
| - | TigerVNC does not support this. However, you can set the default to 'view only'. It is trivial to click the ' | + | ===== Set Configuration ===== |
| - | < | + | < |
| - | AFTER this line | + | # |
| - | < | + | unset SESSION_MANAGER |
| - | add this line | + | unset DBUS_SESSION_BUS_ADDRESS |
| - | < | + | [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup |
| - | Save and exit | + | [ -r $HOME/.Xresources ] && xrdb $HOME/ |
| - | < | + | vncconfig -iconic & |
| - | =Connect= | + | dbus-launch --exit-with-session startxfce4 & |
| - | If you are using the TightVNC client on your Windows desktop, put the following value in the ' | + | EOF</ |
| - | You can also go to the following URL to view the machine through the web browser (replacing HOSTNAME with the name of the server).< | + | |
| - | REMEMBER: When you are finished with the desktop session, do NOT log out. Just close the VNC window. | + | |
| - | You may have to reduce the security settings of Java on your machine. See [http:// | ||
| - | Control Panel-> | ||
| - | =====Disable Annoying Popup Using VNC===== | ||
| - | When you vnc into a CentOS box, you can get an annoying popup asking for the root password to run | ||
| - | org.freedesktop.packagekit.system-network-proxy-configure | + | < |
| + | |||
| + | ===== Launch VNC as a user ===== | ||
| + | < | ||
| + | |||
| + | |||
| + | ===== List VNC sessions ===== | ||
| + | < | ||
| + | |||
| + | ===== Kill a specific VNC session ===== | ||
| + | < | ||
| - | Open a terminal window and run < | ||
| - | Untick packagekit | ||
linux/install_tigervnc.1598855443.txt.gz · Last modified: (external edit)
