atmos:citation:soft:vnc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| atmos:citation:soft:vnc [2026/06/01 20:00] – delene | atmos:citation:soft:vnc [2026/06/03 16:59] (current) – Did some more cleaning up of this page to make it easier to understand and to remove some duplicate information. kevin.norby | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Update August 21, 2024 ====== | ||
| - | |||
| - | |||
| ====== VNC Virtual Network Computing====== | ====== VNC Virtual Network Computing====== | ||
| Line 8: | Line 5: | ||
| Must have a good internet connection in order for it to not be extremely slow, but note that the school' | Must have a good internet connection in order for it to not be extremely slow, but note that the school' | ||
| - | We will be using the RealVNC | + | We will be using either TigerVNC or RealVNC, which include |
| - | ===== First Time Access via VNC to UND Linux Servers (Aircraft/ | + | ===== First Time Access via VNC to UND Linux Servers (Aircraft/ |
| - | - A secure shell client is required. | + | - A secure shell (ssh) client is required. On Windows, use [[https:// |
| - | - On Windows, use [[https:// | + | - The UND VPN is also required. [[https:// |
| - | - Most likely will need to access | + | |
| - When logging into the vpn, use | - When logging into the vpn, use | ||
| - Login to PuTTY with your NDUS login. (firstname.lastname, | - Login to PuTTY with your NDUS login. (firstname.lastname, | ||
| - | - Type vncpasswd | + | - Enter '' |
| - | - Email SCC, Derek Stinchfield | + | - Create a file in '' |
| - | - Use VNC viewer | + | #!/bin/sh |
| - | - Make sure PuTTY is open and logged into (with NDUS identifiers) | + | |
| - | - Open the VNC viewer and enter hostname | + | vncconfig -iconic & |
| - | - Where " | + | |
| - | - Use new VNC password created | + | unset SESSION_MANAGER |
| + | unset DBUS_SESSION_BUS_ADDRESS | ||
| + | exec / | ||
| + | |||
| + | [ -x / | ||
| + | [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources | ||
| + | xsetroot -solid grey | ||
| + | vncconfig -iconic & | ||
| + | </code> | ||
| + | - Make this file executable with the command '' | ||
| + | - Create another file in '' | ||
| + | session=xfce | ||
| + | </ | ||
| + | - If you have not already been assigned a display number, scroll down and add your name with the next available number, or ask to be given the number of an inactive user. | ||
| + | - You will need a VNC viewer. (May need to be downloaded). Name: Either TigerVNC or RealVNC Viewer. (Preference for Tiger, download latest version https:// | ||
| + | - Run PuTTY and start your VNC session | ||
| + | - Run your VNC viewer and enter the hostname, e.g. '' | ||
| + | - Log in with the password | ||
| + | - You should now be looking at a window containing a linux desktop! | ||
| + | - When you are finished with the VNC, please return to PuTTY and enter the command '' | ||
| + | |||
| * Simplified steps for future use after initial set up: | * Simplified steps for future use after initial set up: | ||
| - | - Activate | + | - Start the UND VPN |
| - Open PuTTY and login. | - Open PuTTY and login. | ||
| + | - Enter '' | ||
| - Open VNC Viewer, enter host name, and login. | - Open VNC Viewer, enter host name, and login. | ||
| + | - When you are finished, return to PuTTY and enter '' | ||
| - | ===== Creating a VNC file on Remote Linux Computer | + | ===== Desktop Environment to Use ===== |
| + | Linux has several options for a desktop environment, | ||
| + | |||
| + | If you set up your VNC using the 06/2026 instructions at the top of the page, then you will already be using Xfce. To be sure, look at the top left of the VNC window. If the symbol to the left of '' | ||
| + | < | ||
| + | unset SESSION_MANAGER | ||
| + | unset DBUS_SESSION_BUS_ADDRESS | ||
| + | exec / | ||
| + | </ | ||
| + | Get rid of the line '' | ||
| + | You will also need to create a '' | ||
| + | < | ||
| + | session=xfce | ||
| + | </ | ||
| + | If you already have a config file, make sure it contains this line. | ||
| + | The next time you start your VNC session, it should be running Xfce. | ||
| + | |||
| + | ===== Creating a VNC file on Other Remote Linux Computers | ||
| - You must first create a vnc file on the computer you are wishing to gain external access to (the server computer). | - You must first create a vnc file on the computer you are wishing to gain external access to (the server computer). | ||
| Line 37: | Line 73: | ||
| - Make sure this file is executable. If not, make executable by typing '' | - Make sure this file is executable. If not, make executable by typing '' | ||
| - | === xstartup code for RedHat Linux Computers (for example aircraft.atmos.und.ued) === | ||
| - | |||
| - | See / | ||
| - | |||
| - | < | ||
| - | #!/bin/sh | ||
| - | |||
| - | vncconfig -iconic & | ||
| - | |||
| - | #Uncomment the following two lines for normal desktop: | ||
| - | unset SESSION_MANAGER | ||
| - | exec / | ||
| - | |||
| - | [ -x / | ||
| - | [ -r $HOME/ | ||
| - | xsetroot -solid grey | ||
| - | vncconfig -iconic & | ||
| - | #xterm -geometry 80x24+10+10 -ls -title " | ||
| - | gnome-session & | ||
| - | #IF YOUR NOT ABLE TO OPEN A GNOME TERMINAL IN YOUR VNC SESSION, COMMENT OUT THE LINE ABOVE AND UNCOMMENT OUT THE LINE BELOW! | ||
| - | #exec gnome-session & | ||
| - | 0 | ||
| - | |||
| - | </ | ||
| === xstartup code for Linux Mint Computers (for example Clifford Hall 422 computers) === | === xstartup code for Linux Mint Computers (for example Clifford Hall 422 computers) === | ||
| Line 102: | Line 114: | ||
| * **To Start Server:** | * **To Start Server:** | ||
| - | * Type into a terminal window (on the server computer): '' | + | * Type into a terminal window (on the server computer): '' |
| * You can also choose the display number by using this command: '' | * You can also choose the display number by using this command: '' | ||
| * This will keep the server running until the computer is restarted or the power fails. This is also the reason why the computers in the computer labs are left on. | * This will keep the server running until the computer is restarted or the power fails. This is also the reason why the computers in the computer labs are left on. | ||
| Line 184: | Line 196: | ||
| * Make sure to read the Wiki pages for both of these before continuing with this page | * Make sure to read the Wiki pages for both of these before continuing with this page | ||
| + | |||
| + | ===== Accessing the VNC server on OS X ===== | ||
| + | OS X has a built in VNC viewer, so no extra software is needed to access the VNC server. | ||
| + | |||
| + | To access the VNC server: --- // | ||
| + | |||
| + | * Open Terminal and execute the following command to set up a port tunnel: ssh -L 59??: | ||
| + | * Open Finder and in the toolbar, choose Go-> | ||
| + | * In the dialog box, enter vnc:/ /< | ||
| + | * Choose " | ||
| + | * A window will prompt for your password. Enter it and you're all set! | ||
| + | |||
| + | To change the VNC viewer resolution: | ||
| + | |||
| + | * Connect to the VNC server | ||
| + | * Open settings within the linux operating system and choose Displays-> | ||
| ===== Extra Information for those interested ===== | ===== Extra Information for those interested ===== | ||
| + | |||
| ==== Terms and Definitions ==== | ==== Terms and Definitions ==== | ||
| Line 204: | Line 233: | ||
| * **Client** : Your computer, or the computer that is trying to gain access to the server | * **Client** : Your computer, or the computer that is trying to gain access to the server | ||
| - | |||
| - | ===== Accessing the VNC server on OS X ===== | ||
| - | OS X has a built in VNC viewer, so no extra software is needed to access the VNC server. | ||
| - | |||
| - | To access the VNC server: --- // | ||
| - | |||
| - | * Open Terminal and execute the following command to set up a port tunnel: ssh -L 59??: | ||
| - | * Open Finder and in the toolbar, choose Go-> | ||
| - | * In the dialog box, enter vnc:/ /< | ||
| - | * Choose " | ||
| - | * A window will prompt for your password. Enter it and you're all set! | ||
| - | |||
| - | To change the VNC viewer resolution: | ||
| - | |||
| - | * Connect to the VNC server | ||
| - | * Open settings within the linux operating system and choose Displays-> | ||
| - | |||
| - | |||
| - | ===== Desktop Server to Use (Use XFCE on LittleStorm) ===== | ||
| - | Linux has several options for a Desktop Server, which include gnome and XFCE. Gnome seems to take up to 20GB of memory on Littlestorm after running for several weeks/ | ||
| ===== List of VNC Display Numbers Used by People ===== | ===== List of VNC Display Numbers Used by People ===== | ||
| Line 267: | Line 276: | ||
| * Active Users | * Active Users | ||
| - | To see who is using VNC Server session use the command "ps -ef | grep -i Xvnc" | + | To see who is using VNC Server session use the command "ps -ef | grep -i Xvnc" |
| - | + | ||
| - | - Error Example: Attempting to run vnc, you may get the error 'Timed out waiting for a response from the computer.' | + | |
| - | + | ||
| - | ===== Users Starting the VNC Server ===== | + | |
| - | systemctl start vncserver@: | + | |
| - | | + | |
| - | + | ||
| - | Where n is the vnc session | + | |
| - | systemctl disable vncserver@n.service | + | |
| + | - Error Example: Attempting to run VNC, you may get the error 'Timed out waiting for a response from the computer.' | ||
atmos/citation/soft/vnc.1780344053.txt.gz · Last modified: 2026/06/01 20:00 by delene