User Tools

Site Tools


atmos:citation:soft:vnc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
atmos:citation:soft:vnc [2026/06/02 21:57] – I accidentally submitted my previous change too early!! Sorry!! See that one's summary. I'm just fixing formatting here. kevin.norbyatmos: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 5: Line 5:
 Must have a good internet connection in order for it to not be extremely slow, but note that the school's VPN may be the issue if connection is really slow. Must have a good internet connection in order for it to not be extremely slow, but note that the school's VPN may be the issue if connection is really slow.
  
-We will be using the RealVNC program, which includes the VNC Viewer and the VNC Server.+We will be using either TigerVNC or RealVNC, which include the VNC Viewer and the VNC Server.
  
 ===== First Time Access via VNC to UND Linux Servers (Aircraft/Littlestorm) as of 06/2026 ===== ===== First Time Access via VNC to UND Linux Servers (Aircraft/Littlestorm) as of 06/2026 =====
Line 47: Line 47:
     - When you are finished, return to PuTTY and enter ''systemctl stop vncserver@:#.service''     - When you are finished, return to PuTTY and enter ''systemctl stop vncserver@:#.service''
  
-===== Creating a VNC file on Remote Linux Computer =====+===== Desktop Environment to Use ===== 
 +Linux has several options for a desktop environment, which include GNOME and Xfce. GNOME is the default, but it seems to take up to 20GB of memory on busy servers like Littlestorm after running for several weeks/months. Hence, users should use the Xfce environment instead of GNOME on Littlestorm. 
 + 
 +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 ''Applications'' is a blue X with a mouse in front, you're running Xfce. If your VNC was set up previously and uses GNOME, please swap to Xfce when possible. To do so, edit your ''xstartup'' file and make sure it contains the lines 
 +<code> 
 +unset SESSION_MANAGER 
 +unset DBUS_SESSION_BUS_ADDRESS 
 +exec /usr/bin/xfce4-session 
 +</code> 
 +Get rid of the line ''exec /etc/X11/xinit/xinitrc'' if it is present. 
 +You will also need to create a ''config'' file in ''~/.vnc'' that contains 
 +<code> 
 +session=xfce 
 +</code> 
 +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 56: Line 73:
   - Make sure this file is executable. If not, make executable by typing ''chmod +x xstartup'' in terminal window   - Make sure this file is executable. If not, make executable by typing ''chmod +x xstartup'' in terminal window
  
-=== xstartup code for RedHat Linux Computers (for example aircraft.atmos.und.ued) === 
- 
-See /nas/setup/xstartup-aircraft.  Put the below "code" in .vnc/xstartup using editor or cp.  For example, cp /nas/setup/xstartup-aircraft ~/.vnc/xstartup 
- 
-<code> 
-#!/bin/sh 
- 
-vncconfig -iconic & 
- 
-#Uncomment the following two lines for normal desktop: 
-unset SESSION_MANAGER 
-exec /etc/X11/xinit/xinitrc 
- 
-[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup 
-[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources 
-xsetroot -solid grey  
-vncconfig -iconic & 
-#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & 
-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 
- 
-</code> 
  
 === 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 203: 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: --- //[[david.delene@und.edu|David Delene]] 2020/10/19 23:12//
 +
 +  * Open Terminal and execute the following command to set up a port tunnel: ssh -L 59??:localhost:59?? -l <login name> <host name or IP address> The host name for example is aircraft.atmos.und.edu.  This creates an tunnel via ssh.
 +  * Open Finder and in the toolbar, choose Go->Connect to Server
 +  * In the dialog box, enter vnc:/ /<hostname>:59?? where <hostname> is computer hostname or ip address. Use localhost if doing a tunnel via ssh (setup one).  For the ?? in 59??, replace with display number.  For example 07 or 14 for display 7 and 14. 
 +  * Choose "Connect. 
 +  * 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->Resolution->1920x1080
  
 ===== Extra Information for those interested ===== ===== Extra Information for those interested =====
 +
  
 ==== Terms and Definitions ==== ==== Terms and Definitions ====
Line 223: 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: --- //[[david.delene@und.edu|David Delene]] 2020/10/19 23:12// 
- 
-  * Open Terminal and execute the following command to set up a port tunnel: ssh -L 59??:localhost:59?? -l <login name> <host name or IP address> The host name for example is aircraft.atmos.und.edu.  This creates an tunnel via ssh. 
-  * Open Finder and in the toolbar, choose Go->Connect to Server 
-  * In the dialog box, enter vnc:/ /<hostname>:59?? where <hostname> is computer hostname or ip address. Use localhost if doing a tunnel via ssh (setup one).  For the ?? in 59??, replace with display number.  For example 07 or 14 for display 7 and 14.  
-  * Choose "Connect.  
-  * 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->Resolution->1920x1080 
- 
- 
-===== Desktop Server to Use (Use XFCE on LittleStorm) ===== 
-Linux has several options for a Desktop Server, which include gnome (se and XFCE4 (xfce4-session).  Gnome seems to take up to 20GB of memory on Littlestorm after running for several weeks/months.  Hence, users should use XFCE Destop Server instead of gnome on Littlestorm. 
  
 ===== List of VNC Display Numbers Used by People ===== ===== List of VNC Display Numbers Used by People =====
Line 286: Line 276:
 * Active Users * Active Users
  
-To see who is using VNC Server session use the command "ps -ef | grep -i Xvnc" This can also be used to check if your own session is running. To kill session use vncserver -kill :?  where ? is your display number. +To see who is using VNC Server session use the command "ps -ef | grep -i Xvnc" This can also be used to check if your own session is running. To kill your sessionuse ''systemctl stop vncserver@:#.service'',  where # is your display number.
- +
-- Error Example: Attempting to run vnc, you may get the error 'Timed out waiting for a response from the computer.Use above command to check your session. If your session is not running, email Derek.Stinchfield@und.edu to start the session. +
- +
-===== Users Starting the VNC Server ===== +
-  systemctl start vncserver@:n.service             +
-  systemctl stop vncserver@:n.service +
-   +
-Where n is the vnc session number.  To stop the service use +
-    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.' Use above command to check your session. If your session is not running, start it with ''systemctl start vncserver@:#.service'',  where # is your display number.
atmos/citation/soft/vnc.1780437449.txt.gz · Last modified: 2026/06/02 21:57 by kevin.norby